From 3c86f6c836a8c12f6da86a0b588041db60914cdb Mon Sep 17 00:00:00 2001 From: 13507605001 Date: Tue, 29 Nov 2022 17:56:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E7=A0=81=E8=AF=86=E5=88=AB=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_logic/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_logic/user.py b/db_logic/user.py index 906078c..3243c4a 100644 --- a/db_logic/user.py +++ b/db_logic/user.py @@ -32,7 +32,7 @@ class BllUser(Repository): ) if user_info: if user_info.is_enabled: - if user_info.password == Utils.MD5(password): + if str(user_info.password).lower() == Utils.MD5(password).lower(): self.last_visit_date=Utils.get_str_datetime() self.update(user_info) return self.get_jwt(user_info), user_info