public async Task <IActionResult> RemoveP(string id) { await _fido2Service.Remove(id, _userManager.GetUserId(User)); TempData.SetStatusMessageModel(new StatusMessageModel { Severity = StatusMessageModel.StatusSeverity.Success, Html = "The security device was removed successfully." }); return(RedirectToList()); }
public async Task <IActionResult> RemoveP(string id) { await _fido2Service.Remove(id, _userManager.GetUserId(User)); TempData.SetStatusMessageModel(new StatusMessageModel { Severity = StatusMessageModel.StatusSeverity.Success, Html = $"FIDO2 Credentials were removed successfully." }); return(RedirectToAction(nameof(List))); }