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')
def authentic(self, password): return authenticate(user.login_id, password)
def authentic(self,password): return authenticate(user.login_id, password)