Redo .NET Identity as it was not working.

This commit is contained in:
2019-05-18 01:43:09 +01:00
parent b9eacd73d5
commit aada3f5e86
64 changed files with 597 additions and 340 deletions

View File

@@ -1,4 +1,4 @@
/******************************************************************************
/******************************************************************************
// Canary Islands Computer Museum Website
// ----------------------------------------------------------------------------
//
@@ -62,7 +62,7 @@ namespace cicm_web.Areas.Identity.Pages.Account
{
// Ensure the user has gone through the username & password screen first
IdentityUser user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
if(user == null) throw new InvalidOperationException($"Unable to load two-factor authentication user.");
if(user == null) throw new InvalidOperationException("Unable to load two-factor authentication user.");
ReturnUrl = returnUrl;
@@ -74,7 +74,7 @@ namespace cicm_web.Areas.Identity.Pages.Account
if(!ModelState.IsValid) return Page();
IdentityUser user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
if(user == null) throw new InvalidOperationException($"Unable to load two-factor authentication user.");
if(user == null) throw new InvalidOperationException("Unable to load two-factor authentication user.");
string recoveryCode = Input.RecoveryCode.Replace(" ", string.Empty);