修改登录锁定bug

master
elf@home 5 years ago
parent 6b0566515c
commit 7a92adf949

@ -98,7 +98,7 @@ class UserService
$user = M('user', 'tab_')->where(['account' => $account])->find();
/* 获取用户数据 */
if (empty($user) || $user['lock_status'] != 1 && $user['check_status'] != 1) {
if (empty($user) || $user['lock_status'] != 1 || $user['check_status'] != 1) {
return ['status' => false, 'message' => '账号或密码错误'];
}
if ($this->password($password, UC_AUTH_KEY) !== $user['password']) {

Loading…
Cancel
Save