From 96d30c2df35db92ac82f6d266803d5f30c5fca12 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 30 Oct 2018 18:54:34 +0800 Subject: [PATCH] use new password --- mock/user.js | 4 ++-- src/pages/User/Login.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mock/user.js b/mock/user.js index f9294459..86d52e3b 100644 --- a/mock/user.js +++ b/mock/user.js @@ -73,7 +73,7 @@ export default { ], 'POST /api/login/account': (req, res) => { const { password, userName, type } = req.body; - if (password === '888888' && userName === 'admin') { + if (password === 'ant.design' && userName === 'admin') { res.send({ status: 'ok', type, @@ -81,7 +81,7 @@ export default { }); return; } - if (password === '123456' && userName === 'user') { + if (password === 'ant.design' && userName === 'user') { res.send({ status: 'ok', type, diff --git a/src/pages/User/Login.js b/src/pages/User/Login.js index 5c912372..3937cc80 100644 --- a/src/pages/User/Login.js +++ b/src/pages/User/Login.js @@ -81,10 +81,10 @@ class LoginPage extends Component { login.type === 'account' && !submitting && this.renderMessage(formatMessage({ id: 'app.login.message-invalid-credentials' }))} - + this.loginForm.validateFields(this.handleSubmit)} /> -- GitLab