mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update user.py
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user