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.")); } }
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.")); } }
public SimpleRefreshTokenProvider() { _hPayDomain = new hPayDomain(); }
public CustomOAuthProvider() { _hPayDomain = new hPayDomain(); }