예제 #1
0
        public async Task <ActionResult> ResetPassword([FromForm] PostResetPasswordRequest request, CancellationToken ct)
        {
            var response = await _passwordResetService.SendResetMessageAsync(
                request.Country,
                request.Login,
                IpAddress,
                UserAgent,
                ct);

            if (response.IsInvalidLogin)
            {
                var getResetPasswordRequest = new GetResetPasswordRequest
                {
                    Login          = request.Login,
                    IsInvalidLogin = true
                };

                return(RedirectToAction("ResetPassword", getResetPasswordRequest));
            }

            return(View("~/OAuth/Views/ResetPasswordConfirmation.cshtml"));
        }