Example #1
0
 def test_confirm_user(self):
     self.new_user = User('Clyde', 'Dennis', 'lit')
     self.new_user.save_user()
     userZ = User('Clyde', 'Dennis', 'lit')
     userZ.save_user()
     active_user = Credential.confirm_user('Clyde', 'lit')
     self.assertTrue(active_user)
Example #2
0
def authenticate_user(firstname, password):
    '''
    To verify user is enabled
    '''
    confirm_user = Credential.confirm_user(firstname, password)
    return confirm_user