mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-09 16:09:04 -06:00
Updated .gitignore to include key and build files
This commit is contained in:
@@ -15,6 +15,8 @@ class User(UserMixin, db.Model):
|
||||
self.password_hash = generate_password_hash(password)
|
||||
|
||||
def check_password(self, password):
|
||||
if self.password_hash is None:
|
||||
raise "{} has no password_hash set!".format(self.__repr__())
|
||||
return check_password_hash(self.password_hash, password)
|
||||
|
||||
def __repr__(self):
|
||||
|
||||
Reference in New Issue
Block a user