From 5631ca6decb4f963e245e6ad693a5e6519c12d62 Mon Sep 17 00:00:00 2001 From: Karson Date: Thu, 18 Dec 2025 15:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=87=8D=E7=BD=AE=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E5=90=8EToken=E6=B8=85=E9=99=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/common/library/Auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/library/Auth.php b/application/common/library/Auth.php index 104c9d6a..b2807ed6 100644 --- a/application/common/library/Auth.php +++ b/application/common/library/Auth.php @@ -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();