优化重置密码后Token清除逻辑

pull/516/MERGE
Karson 2025-12-18 15:08:27 +08:00
parent 14207687b4
commit 5631ca6dec
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ class Auth
$newpassword = $this->getEncryptPassword($newpassword, $salt);
$this->_user->save(['loginfailure' => 0, 'password' => $newpassword, 'salt' => $salt]);
Token::delete($this->_token);
Token::clear($this->_user->id);
//修改密码成功的事件
Hook::listen("user_changepwd_successed", $this->_user);
Db::commit();