예제 #1
0
파일: models.py 프로젝트: hirokiky/weiwei
 def check_password(self, raw_password):
     hashed = make_hashed(raw_password)
     return self.password == hashed
예제 #2
0
파일: models.py 프로젝트: hirokiky/weiwei
 def set_password(self, raw_password):
     self.password = make_hashed(raw_password)