Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
96d30c2d
Commit
96d30c2d
authored
Oct 30, 2018
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use new password
parent
9bac553f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mock/user.js
mock/user.js
+2
-2
src/pages/User/Login.js
src/pages/User/Login.js
+2
-2
No files found.
mock/user.js
View file @
96d30c2d
...
@@ -73,7 +73,7 @@ export default {
...
@@ -73,7 +73,7 @@ export default {
],
],
'
POST /api/login/account
'
:
(
req
,
res
)
=>
{
'
POST /api/login/account
'
:
(
req
,
res
)
=>
{
const
{
password
,
userName
,
type
}
=
req
.
body
;
const
{
password
,
userName
,
type
}
=
req
.
body
;
if
(
password
===
'
888888
'
&&
userName
===
'
admin
'
)
{
if
(
password
===
'
ant.design
'
&&
userName
===
'
admin
'
)
{
res
.
send
({
res
.
send
({
status
:
'
ok
'
,
status
:
'
ok
'
,
type
,
type
,
...
@@ -81,7 +81,7 @@ export default {
...
@@ -81,7 +81,7 @@ export default {
});
});
return
;
return
;
}
}
if
(
password
===
'
123456
'
&&
userName
===
'
user
'
)
{
if
(
password
===
'
ant.design
'
&&
userName
===
'
user
'
)
{
res
.
send
({
res
.
send
({
status
:
'
ok
'
,
status
:
'
ok
'
,
type
,
type
,
...
...
src/pages/User/Login.js
View file @
96d30c2d
...
@@ -81,10 +81,10 @@ class LoginPage extends Component {
...
@@ -81,10 +81,10 @@ class LoginPage extends Component {
login
.
type
===
'
account
'
&&
login
.
type
===
'
account
'
&&
!
submitting
&&
!
submitting
&&
this
.
renderMessage
(
formatMessage
({
id
:
'
app.login.message-invalid-credentials
'
}))}
this
.
renderMessage
(
formatMessage
({
id
:
'
app.login.message-invalid-credentials
'
}))}
<
UserName
name
=
"
userName
"
placeholder
=
"
admin/
user
"
/>
<
UserName
name
=
"
userName
"
placeholder
=
"
username: admin or
user
"
/>
<
Password
<
Password
name
=
"
password
"
name
=
"
password
"
placeholder
=
"
888888/123456
"
placeholder
=
"
password: ant.design
"
onPressEnter
=
{()
=>
this
.
loginForm
.
validateFields
(
this
.
handleSubmit
)}
onPressEnter
=
{()
=>
this
.
loginForm
.
validateFields
(
this
.
handleSubmit
)}
/
>
/
>
<
/Tab
>
<
/Tab
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment