public ViewResult PasswordReset() { var model = new PasswordResetModel(); return View(model); }
public async Task<ViewResult> PasswordReset(PasswordResetModel model) { if (!model.IsValid()) { SetPleaseTryAgain(model); return View(model); } var isValid = await _userService.RequestPasswordReset(model.Email); if (!isValid) { SetPleaseTryAgain(model); return View(model); } model.Msg = LocalizationStringHtmlHelper.LocalizationString("password_reset_link_sent_to_your_email"); return View(model); }