mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-20 01:16:36 +08:00
更新修改默认密码的提示
This commit is contained in:
parent
b140b326b8
commit
23dde53c37
@ -90,14 +90,12 @@ const LoginForm = () => {
|
||||
if (success) {
|
||||
userDispatch({type: 'login', payload: data});
|
||||
localStorage.setItem('user', JSON.stringify(data));
|
||||
showSuccess('登录成功!');
|
||||
if (username === 'root' && password === '123456') {
|
||||
navigate('/user/edit');
|
||||
showSuccess('登录成功!');
|
||||
showWarning('请立刻修改默认密码!');
|
||||
} else {
|
||||
navigate('/token');
|
||||
showSuccess('登录成功!');
|
||||
Modal.error({title: '您正在使用默认密码!', content: '请立刻修改默认密码!'});
|
||||
}
|
||||
navigate('/token');
|
||||
} else {
|
||||
showError(message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user