Пример #1
0
        public PokedexUser AuthenticatePokedexUser(string email, string password)
        {
            PokedexUser dexUserResult = null;

            // We need to hash the password
            var passwordHash = hashUserPassword(password);

            password = null;

            try
            {
                dexUserResult = _userAccessor.AuthenticatePokedexUser(email, passwordHash);
            }
            catch (Exception ex)
            {
                throw new ApplicationException("Login Failed, Please try again!", ex);
            }

            return(dexUserResult);
        }