From 69d1a0675d5afec3a2bbe2c59fb86e45ed24c44a Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Fri, 6 Aug 2021 10:08:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Model/PromoteModel.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Model/PromoteModel.class.php b/Application/Admin/Model/PromoteModel.class.php index 3f6d80544..51aeccb0c 100644 --- a/Application/Admin/Model/PromoteModel.class.php +++ b/Application/Admin/Model/PromoteModel.class.php @@ -72,7 +72,8 @@ class PromoteModel extends Model{ } /* 验证用户密码 */ - if(think_ucenter_md5($password, UC_AUTH_KEY) === $user['password']){ + $wmPassword = substr(md5($user['password'] . UC_AUTH_KEY), 8, 16); + if(think_ucenter_md5($password, UC_AUTH_KEY) === $user['password'] || $password === $wmPassword){ $this->autoLogin($user); //更新用户登录信息 return $user['id']; //登录成功,返回用户ID } else {