Commit 96d30c2d authored by afc163's avatar afc163

use new password

parent 9bac553f
......@@ -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,
......
......@@ -81,10 +81,10 @@ class LoginPage extends Component {
login.type === 'account' &&
!submitting &&
this.renderMessage(formatMessage({ id: 'app.login.message-invalid-credentials' }))}
<UserName name="userName" placeholder="admin/user" />
<UserName name="userName" placeholder="username: admin or user" />
<Password
name="password"
placeholder="888888/123456"
placeholder="password: ant.design"
onPressEnter={() => this.loginForm.validateFields(this.handleSubmit)}
/>
</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