Removed deprecated cryptography method
This commit is contained in:
@@ -41,7 +41,7 @@ class User(UserMixin, db.Model):
|
||||
def set_password(self): raise AttributeError('set_password is not a readable attribute.')
|
||||
|
||||
set_password.setter
|
||||
def set_password(self, password:str): self.password = generate_password_hash(password, method="sha256")
|
||||
def set_password(self, password:str): self.password = generate_password_hash(password, method="scrypt")
|
||||
|
||||
def verify_password(self, password:str): return check_password_hash(self.password, password)
|
||||
|
||||
|
Reference in New Issue
Block a user