diff --git a/web/admin/model/user.py b/web/admin/model/user.py index fac67858e..6fa1ec3e7 100644 --- a/web/admin/model/user.py +++ b/web/admin/model/user.py @@ -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