コード例 #1
0
        public static DemandPasswordResetModel GetOrganizationOneUserOneDemandPasswordResetModel()
        {
            var model = new DemandPasswordResetModel();

            model.Email = OrganizationOneUserOneEmail;

            return(model);
        }
コード例 #2
0
        public async Task DemandPasswordReset_POST_InvalidModel()
        {
            // arrange
            var model = new DemandPasswordResetModel();

            // act
            var result = await SystemUnderTest.DemandPasswordReset(model);

            // assert
            AssertInputErrorMessagesOfView(result, model);
        }
コード例 #3
0
        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"));
        }
コード例 #4
0
        public ViewResult DemandPasswordReset()
        {
            var model = new DemandPasswordResetModel();

            return(View(model));
        }