示例#1
0
        public async Task <ActionResult> ResetPassword(ResetPasswordRequest model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            var resetPasswordSuccess = await _userRegistrationService.ResetPassword(model);

            if (resetPasswordSuccess)
            {
                return(View("ResetPasswordConfirmation"));
            }
            ModelState.AddModelError("", Act.ResetPasswordError);
            return(View(model));
        }