Ejemplo n.º 1
0
        public async Task <IActionResult> ConfirmEmail(string userId, string code)
        {
            if (userId == null || code == null)
            {
                return(RedirectToAction(nameof(HomeController.Index), "Home"));
            }

            var result = await _accountManager.ConfirmEmail(userId, code);

            return(View(result.Succeeded ? "ConfirmEmail" : "Error"));
        }
 public async Task <ApiResponse> ConfirmEmail(ConfirmEmailViewModel parameters)
 => ModelState.IsValid ? await _accountManager.ConfirmEmail(parameters) : _invalidData;
Ejemplo n.º 3
0
 public Task <EmailConfirmationResult> ConfirmEmail(string confirmationCode)
 {
     return(accountManager.ConfirmEmail(confirmationCode));
 }