This commit is contained in:
Rich
2021-07-03 09:49:22 +01:00
parent 3a24e0a9db
commit d50fbde5de
3 changed files with 8 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
from werkzeug.security import generate_password_hash, check_password_hash
from flask_login import UserMixin
from app import login
class User(UserMixin):
@@ -8,3 +9,8 @@ class User(UserMixin):
def check_password(self, password):
return check_password_hash(self.password_hash, password)
@login.user_loader
def load_user(id):
return 0