Update user.py

pull/632/head
Mr Chen 6 months ago
parent f8f152affb
commit 0467d39c90
  1. 12
      web/admin/model/user.py

@ -90,15 +90,3 @@ def isLoginCheck(username, password) -> bool:
if info['password'] == mw.md5(password): if info['password'] == mw.md5(password):
return True return True
return False 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

Loading…
Cancel
Save