Commit 96d30c2d authored by afc163's avatar afc163

use new password

parent 9bac553f
...@@ -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,
......
...@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment