from flask_login import UserMixin class User(UserMixin): def __init__(self , username , password , id , active=True, salt=""): self.id = id self.username = username self.password = password self.active = active self.salt = salt def get(self): return self.id def get_id(self): return self.id def is_active(self): return self.active # def get_auth_token(self): # return make_secure_token(self.username , key='secret_key')