Dilde Başlar is a rights based automated redactor.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from werkzeug.security import generate_password_hash, check_password_hash
|
|
|
|
|
|
class User(db.Model):
|
|
def set_password(self, password):
|
|
self.password_hash = generate_password_hash(password)
|
|
|
|
def check_password(self, password):
|
|
return check_password_hash(self.password_hash, password) |