Exemple #1
0
 def set_password(self, password):
     self.password = bcrypt.generate_password_hash(password)
 def set_password(self, password):
     self.password = bcrypt.generate_password_hash(password)
Exemple #3
0
 def __init__(self, email, password, display_name):
     self.email = email
     self.password = bcrypt.generate_password_hash(password)
     self.display_name = display_name
     # for v1.0, set all houses to Godric's.
     self.house_id = House.query.first().id
 def __init__(self, email, password):
     self.email = email
     self.password = bcrypt.generate_password_hash(password)