Explorar o código

refactor: user_loader不进行登录检擦

SongZihuan %!s(int64=2) %!d(string=hai) anos
pai
achega
198a4de07a
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      web/login.py

+ 1 - 4
web/login.py

@@ -8,7 +8,4 @@ login.login_view = "auth.login_page"
 
 @login.user_loader
 def user_loader(username):
-    user = User(username)
-    if user.check_login():
-        return user
-    return None
+    return User(username)