public static DemandPasswordResetModel GetOrganizationOneUserOneDemandPasswordResetModel() { var model = new DemandPasswordResetModel(); model.Email = OrganizationOneUserOneEmail; return(model); }
public async Task DemandPasswordReset_POST_InvalidModel() { // arrange var model = new DemandPasswordResetModel(); // act var result = await SystemUnderTest.DemandPasswordReset(model); // assert AssertInputErrorMessagesOfView(result, model); }
public async Task <IActionResult> DemandPasswordReset(DemandPasswordResetModel model) { if (model.IsNotValid()) { model.SetInputModelValues(); return(View(model)); } var request = new DemandPasswordResetRequest(model.Email); var response = await OrganizationService.DemandPasswordReset(request); if (response.Status.IsNotSuccess) { return(RedirectToAccessDenied()); } return(Redirect("/User/DemandPasswordResetDone")); }
public ViewResult DemandPasswordReset() { var model = new DemandPasswordResetModel(); return(View(model)); }