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