Beispiel #1
0
 def check_password(self, raw_password):
     hashed = make_hashed(raw_password)
     return self.password == hashed
Beispiel #2
0
 def set_password(self, raw_password):
     self.password = make_hashed(raw_password)