Esempio n. 1
0
        public async Task <ActionResult> ForgotPassword(ForgotPasswordViewModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }
            var sendEmailISuccess = await _userRegistrationService.SendPasswordResetLink(Request, model.Email);

            if (!sendEmailISuccess)
            {
                ModelState.AddModelError("", Act.SendPasswordRestLinkError);
            }
            return(View("ForgotPasswordConfirmation"));
        }