80 references to GetUserId
Identity.ExternalClaims (22)
Pages\Account\Manage\ChangePassword.cshtml.cs (2)
63
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
85
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Pages\Account\Manage\Disable2fa.cshtml.cs (5)
34
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
39
throw new ApplicationException($"Cannot disable 2FA for user with ID '{_userManager.
GetUserId
(User)}' as it's not currently enabled.");
50
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
56
throw 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 (2)
60
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
78
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Pages\Account\Manage\ExternalLogins.cshtml.cs (4)
43
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
59
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
80
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.
GetUserId
(User));
89
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (1)
36
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Pages\Account\Manage\Index.cshtml.cs (3)
60
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
86
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
120
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (2)
33
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
44
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Pages\Account\Manage\SetPassword.cshtml.cs (2)
54
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
77
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (1)
44
throw new ApplicationException($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
IdentitySample.DefaultUI (2)
Areas\Identity\Pages\Account\Manage\Index.cshtml.cs (2)
55
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
79
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
IdentitySample.Mvc (1)
Controllers\ManageController.cs (1)
325
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.
GetUserId
(User));
Microsoft.AspNetCore.Identity.UI (54)
Areas\Identity\Pages\V4\Account\Manage\ChangePassword.cshtml.cs (2)
101
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
123
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\DeletePersonalData.cshtml.cs (2)
80
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
92
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\Disable2fa.cshtml.cs (2)
55
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
71
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\DownloadPersonalData.cshtml.cs (1)
55
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\Email.cshtml.cs (3)
115
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
127
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
162
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\EnableAuthenticator.cshtml.cs (2)
108
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
121
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (4)
89
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
112
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
134
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.
GetUserId
(User));
143
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
63
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
80
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\Index.cshtml.cs (2)
96
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
108
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\PersonalData.cshtml.cs (1)
42
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\ResetAuthenticator.cshtml.cs (2)
58
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
69
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\SetPassword.cshtml.cs (2)
88
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
111
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V4\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
81
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
97
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\ChangePassword.cshtml.cs (2)
101
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
123
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\DeletePersonalData.cshtml.cs (2)
80
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
92
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\Disable2fa.cshtml.cs (2)
55
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
71
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\DownloadPersonalData.cshtml.cs (1)
55
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\Email.cshtml.cs (3)
115
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
127
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
162
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\EnableAuthenticator.cshtml.cs (2)
108
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
121
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (4)
89
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
112
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
134
var properties = _signInManager.ConfigureExternalAuthenticationProperties(provider, redirectUrl, _userManager.
GetUserId
(User));
143
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\GenerateRecoveryCodes.cshtml.cs (2)
63
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
80
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\Index.cshtml.cs (2)
96
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
108
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\PersonalData.cshtml.cs (1)
42
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\ResetAuthenticator.cshtml.cs (2)
58
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
69
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\SetPassword.cshtml.cs (2)
88
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
111
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Areas\Identity\Pages\V5\Account\Manage\TwoFactorAuthentication.cshtml.cs (2)
81
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
97
return NotFound($"Unable to load user with ID '{_userManager.
GetUserId
(User)}'.");
Microsoft.Extensions.Identity.Core (1)
UserManager.cs (1)
435
var id =
GetUserId
(principal);