예제 #1
0
 def test_update_hash_scheme(self):
     old_hash = list(self.db('select password from dz_users'))[0][0]
     authenticated = authenticate('admin', 'admin')
     assert authenticated == True
     new_hash = list(self.db('select password from dz_users'))[0][0]
     assert old_hash <> new_hash
     assert len(old_hash) < len(new_hash)
     assert new_hash.startswith('$bcrypt')
예제 #2
0
 def authentic(self, password):
     return authenticate(user.login_id, password)
예제 #3
0
파일: model.py 프로젝트: dsilabs/datazoomer
 def authentic(self,password):
     return authenticate(user.login_id, password)