兼容门店端登录
This commit is contained in:
@@ -53,7 +53,11 @@ class PasswordLoginController extends BaseController
|
||||
throw new \Exception('用户不存在或已禁用', 403);
|
||||
}
|
||||
|
||||
if ($user->passwordMd5 !== md5($password)) {
|
||||
if($typeId == 2){
|
||||
$password = md5($password);
|
||||
}
|
||||
|
||||
if ($user->passwordMd5 !== $password) {
|
||||
throw new \Exception('账号或密码错误', 403);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user