mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Redo .NET Identity as it was not working.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user