Update user.py

This commit is contained in:
Mr Chen
2024-11-01 18:57:12 +08:00
parent f8f152affb
commit 0467d39c90
-12
View File
@@ -90,15 +90,3 @@ def isLoginCheck(username, password) -> bool:
if info['password'] == mw.md5(password):
return True
return False
def isLoginCheck(username, password) -> bool:
info = getUserByName(data['username'])
if info is None:
return False
if info['password'] == mw.md5(password):
return True
return False