mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-11 18:42:54 +00:00
fix: 登录账号密码错误时提示修改
This commit is contained in:
parent
1ffd2812dc
commit
327d0d20a9
@ -83,10 +83,10 @@ class UsersController extends AbstractController
|
||||
};
|
||||
$user = User::whereEmail($email)->first();
|
||||
if (empty($user)) {
|
||||
return $retError('账号或密码错误');
|
||||
return $retError('账号不存在,请确认账号是否输入正确');
|
||||
}
|
||||
if ($user->password != Base::md52($password, $user->encrypt)) {
|
||||
return $retError('账号或密码错误');
|
||||
return $retError('密码错误,请输入正确密码');
|
||||
}
|
||||
//
|
||||
if (in_array('disable', $user->identity)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user