Ejemplo n.º 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')
Ejemplo n.º 2
0
 def authentic(self, password):
     return authenticate(user.login_id, password)
Ejemplo n.º 3
0
 def authentic(self,password):
     return authenticate(user.login_id, password)