去除md5校验,交由前端处理
This commit is contained in:
@@ -49,7 +49,7 @@ class AuthService
|
||||
throw new \Exception('用户不存在或已禁用', 403);
|
||||
}
|
||||
|
||||
if ($user->passwordMd5 !== md5($password)) {
|
||||
if ($user->passwordMd5 !== $password) {
|
||||
throw new \Exception('账号或密码错误', 403);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user