예제 #1
0
파일: user_test.py 프로젝트: mucciz/Vault
    def test_auth_users(self):
        '''
        checks if username and password matches
        '''

        self.new_user.save_user()
        test_user = User('6561', 'scooby', 'doo')
        test_user.save_user()
        auth_users = User.auth_user('scooby', 'doo')
        self.assertTrue(auth_users)
예제 #2
0
파일: run.py 프로젝트: mucciz/Vault
def authenticate_user(usr_name, pword):
    '''
    function that checks whether a user is a valid user
    '''
    return User.auth_user(usr_name, pword)