From 7342e60de161db84879643959fda78a4ebdbca2d Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Sat, 19 Jul 2025 17:19:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/controller/PasswordLoginController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server/application/common/controller/PasswordLoginController.php b/Server/application/common/controller/PasswordLoginController.php index 6d461cf4..74058fe4 100644 --- a/Server/application/common/controller/PasswordLoginController.php +++ b/Server/application/common/controller/PasswordLoginController.php @@ -53,9 +53,9 @@ class PasswordLoginController extends BaseController throw new \Exception('用户不存在或已禁用', 403); } - if($typeId == 2){ - $password = md5($password); - } + + $password = md5($password); + if ($user->passwordMd5 !== $password) { throw new \Exception('账号或密码错误', 403);