public async Task <VerifyResetPasswordResponse> Handle(VerifyResetPasswordRequest request,
                                                               CancellationToken cancellationToken)
        {
            var(token, email) = (cryptoService.Decrypt(request.Token), cryptoService.Decrypt(request.Email));

            await resetPasswordManager.VerifyResetPasswordToken(email, token);

            return(new VerifyResetPasswordResponse());
        }
Ejemplo n.º 2
0
 public async Task <IActionResult> OnGetAsync()
 => await resetPasswordManager.VerifyResetPasswordToken(UserId, Code)
         ? (IActionResult)Page() : RedirectToPage("/Index");