Beispiel #1
0
        public IHttpActionResult ForgetPassword(string userName)
        {
            hPayDomain hPayDomain = new hPayDomain();

            bool isPasswordReset = hPayDomain.ForgetPassword(userName);


            if (isPasswordReset == true)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest("Old password is not correct."));
            }
        }
Beispiel #2
0
        public IHttpActionResult ChangeProviderPassword(ChangePasswordBindingModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var userName = GetUserName();

            hPayDomain hPayDomain = new hPayDomain();

            bool isPasswordChanged = hPayDomain.ChangePassword(userName, model.OldPassword, model.NewPassword);


            if (isPasswordChanged == true)
            {
                return(Ok());
            }
            else
            {
                return(BadRequest("Old password is not correct."));
            }
        }
Beispiel #3
0
 public SimpleRefreshTokenProvider()
 {
     _hPayDomain = new hPayDomain();
 }
 public CustomOAuthProvider()
 {
     _hPayDomain = new hPayDomain();
 }