public async Task <IActionResult> ConfirmResetPost(ConfirmResetModel model) { if (ModelState.IsValid) { var user = _pool.GetUser(model.Email); if (user.Status != null) { ModelState.AddModelError(string.Empty, "User with this email already exists"); return(View(model)); } Task result = user.ConfirmForgotPasswordAsync(model.Code, model.Password); if (result != null) { return(RedirectToAction("Login", "Accounts")); } ModelState.AddModelError(string.Empty, "did not possible reset your password"); } return(RedirectToAction("Login", "Accounts")); }
public async Task <IActionResult> ConfirmReset(ConfirmResetModel model) { return(View(model)); }