up. ws update.
This commit is contained in:
parent
e9187a8ef2
commit
05d350631a
@ -54,8 +54,8 @@ class AuthController extends BaseController
|
||||
])->find();
|
||||
if($clientModel && $clientModel['is_lock']) {
|
||||
if (empty($clientModel['lock_password'])) {
|
||||
if(!password_verify($password, $this->auth->getUser()->password)) {
|
||||
return $this->writeError('密码错误', $this->auth->getUser());
|
||||
if(!password_verify($password, $this->auth->getUser()->get('password'))) {
|
||||
return $this->writeError('密码错误');
|
||||
}
|
||||
}else{
|
||||
if($clientModel['lock_password'] !== $password) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user