151 references to User
Identity.ExternalClaims (41)
Pages\Account\Manage\ChangePassword.cshtml.cs (4)
60var user = await _userManager.GetUserAsync(User); 63throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 82var user = await _userManager.GetUserAsync(User); 85throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\Disable2fa.cshtml.cs (7)
31var user = await _userManager.GetUserAsync(User); 34throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 39throw new ApplicationException($"Cannot disable 2FA for user with ID '{_userManager.GetUserId(User)}' as it's not currently enabled."); 47var user = await _userManager.GetUserAsync(User); 50throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 56throw new ApplicationException($"Unexpected error occurred disabling 2FA for user with ID '{_userManager.GetUserId(User)}'."); 59_logger.LogInformation("User with ID '{UserId}' has disabled 2fa.", _userManager.GetUserId(User));
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (4)
57var user = await _userManager.GetUserAsync(User); 60throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 75var user = await _userManager.GetUserAsync(User); 78throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\ExternalLogins.cshtml.cs (7)
40var user = await _userManager.GetUserAsync(User); 43throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 56var user = await _userManager.GetUserAsync(User); 59throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 80var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User)); 86var user = await _userManager.GetUserAsync(User); 89throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
33var user = await _userManager.GetUserAsync(User); 36throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\Index.cshtml.cs (6)
57var user = await _userManager.GetUserAsync(User); 60throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 83var user = await _userManager.GetUserAsync(User); 86throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 117var user = await _userManager.GetUserAsync(User); 120throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (4)
30var user = await _userManager.GetUserAsync(User); 33throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 41var user = await _userManager.GetUserAsync(User); 44throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\SetPassword.cshtml.cs (4)
51var user = await _userManager.GetUserAsync(User); 54throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 74var user = await _userManager.GetUserAsync(User); 77throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
41var user = await _userManager.GetUserAsync(User); 44throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Pages\Account\SignedOut.cshtml.cs (1)
15if (User.Identity.IsAuthenticated)
IdentitySample.DefaultUI (4)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (4)
52var user = await _userManager.GetUserAsync(User); 55return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 76var user = await _userManager.GetUserAsync(User); 79return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Microsoft.AspNetCore.Identity.UI (106)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (4)
98var user = await _userManager.GetUserAsync(User); 101return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 120var user = await _userManager.GetUserAsync(User); 123return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (4)
77var user = await _userManager.GetUserAsync(User); 80return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 89var user = await _userManager.GetUserAsync(User); 92return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (4)
52var user = await _userManager.GetUserAsync(User); 55return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 68var user = await _userManager.GetUserAsync(User); 71return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (2)
52var user = await _userManager.GetUserAsync(User); 55return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (6)
112var user = await _userManager.GetUserAsync(User); 115return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 124var user = await _userManager.GetUserAsync(User); 127return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 159var user = await _userManager.GetUserAsync(User); 162return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (4)
105var user = await _userManager.GetUserAsync(User); 108return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 118var user = await _userManager.GetUserAsync(User); 121return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (7)
86var user = await _userManager.GetUserAsync(User); 89return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 109var user = await _userManager.GetUserAsync(User); 112return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 134var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User)); 140var user = await _userManager.GetUserAsync(User); 143return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (4)
60var user = await _userManager.GetUserAsync(User); 63return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 77var user = await _userManager.GetUserAsync(User); 80return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (4)
93var user = await _userManager.GetUserAsync(User); 96return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 105var user = await _userManager.GetUserAsync(User); 108return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\PersonalData.cshtml.cs (2)
39var user = await _userManager.GetUserAsync(User); 42return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (4)
55var user = await _userManager.GetUserAsync(User); 58return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 66var user = await _userManager.GetUserAsync(User); 69return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (4)
85var user = await _userManager.GetUserAsync(User); 88return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 108var user = await _userManager.GetUserAsync(User); 111return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (4)
78var user = await _userManager.GetUserAsync(User); 81return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 94var user = await _userManager.GetUserAsync(User); 97return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (4)
98var user = await _userManager.GetUserAsync(User); 101return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 120var user = await _userManager.GetUserAsync(User); 123return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (4)
77var user = await _userManager.GetUserAsync(User); 80return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 89var user = await _userManager.GetUserAsync(User); 92return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (4)
52var user = await _userManager.GetUserAsync(User); 55return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 68var user = await _userManager.GetUserAsync(User); 71return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (2)
52var user = await _userManager.GetUserAsync(User); 55return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (6)
112var user = await _userManager.GetUserAsync(User); 115return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 124var user = await _userManager.GetUserAsync(User); 127return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 159var user = await _userManager.GetUserAsync(User); 162return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (4)
105var user = await _userManager.GetUserAsync(User); 108return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 118var user = await _userManager.GetUserAsync(User); 121return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (7)
86var user = await _userManager.GetUserAsync(User); 89return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 109var user = await _userManager.GetUserAsync(User); 112return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 134var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.GetUserId(User)); 140var user = await _userManager.GetUserAsync(User); 143return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (4)
60var user = await _userManager.GetUserAsync(User); 63return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 77var user = await _userManager.GetUserAsync(User); 80return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (4)
93var user = await _userManager.GetUserAsync(User); 96return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 105var user = await _userManager.GetUserAsync(User); 108return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\PersonalData.cshtml.cs (2)
39var user = await _userManager.GetUserAsync(User); 42return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (4)
55var user = await _userManager.GetUserAsync(User); 58return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 66var user = await _userManager.GetUserAsync(User); 69return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (4)
85var user = await _userManager.GetUserAsync(User); 88return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 108var user = await _userManager.GetUserAsync(User); 111return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (4)
78var user = await _userManager.GetUserAsync(User); 81return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); 94var user = await _userManager.GetUserAsync(User); 97return NotFound($"Unable to load user with ID '{_userManager.GetUserId(User)}'.");