2 instantiations of ApplicationUser
Identity.ExternalClaims (2)
Pages\Account\ExternalLogin.cshtml.cs (1)
119
var user = new
ApplicationUser
{ UserName = Input.Email, Email = Input.Email };
Pages\Account\Register.cshtml.cs (1)
71
var user = new
ApplicationUser
{ UserName = Input.Email, Email = Input.Email };
81 references to ApplicationUser
Identity.ExternalClaims (81)
Controllers\AccountController.cs (2)
18
private readonly SignInManager<
ApplicationUser
> _signInManager;
21
public AccountController(SignInManager<
ApplicationUser
> signInManager, ILogger<AccountController> logger)
Data\ApplicationDbContext.cs (1)
13
public class ApplicationDbContext : IdentityDbContext<
ApplicationUser
>
Pages\Account\ConfirmEmail.cshtml.cs (3)
17
private readonly UserManager<
ApplicationUser
> _userManager;
19
public ConfirmEmailModel(UserManager<
ApplicationUser
> userManager)
31
var
user = await _userManager.FindByIdAsync(userId);
Pages\Account\ExternalLogin.cshtml.cs (6)
19
private readonly SignInManager<
ApplicationUser
> _signInManager;
20
private readonly UserManager<
ApplicationUser
> _userManager;
24
SignInManager<
ApplicationUser
> signInManager,
25
UserManager<
ApplicationUser
> userManager,
81
var
user = await _userManager.FindByLoginAsync(info.LoginProvider, info.ProviderKey);
119
var
user = new ApplicationUser { UserName = Input.Email, Email = Input.Email };
Pages\Account\ForgotPassword.cshtml.cs (3)
18
private readonly UserManager<
ApplicationUser
> _userManager;
21
public ForgotPasswordModel(UserManager<
ApplicationUser
> userManager, IEmailSender emailSender)
41
var
user = await _userManager.FindByEmailAsync(Input.Email);
Pages\Account\Login.cshtml.cs (2)
20
private readonly SignInManager<
ApplicationUser
> _signInManager;
23
public LoginModel(SignInManager<
ApplicationUser
> signInManager, ILogger<LoginModel> logger)
Pages\Account\LoginWith2fa.cshtml.cs (4)
19
private readonly SignInManager<
ApplicationUser
> _signInManager;
22
public LoginWith2faModel(SignInManager<
ApplicationUser
> signInManager, ILogger<LoginWith2faModel> logger)
50
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
70
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
Pages\Account\LoginWithRecoveryCode.cshtml.cs (4)
19
private readonly SignInManager<
ApplicationUser
> _signInManager;
22
public LoginWithRecoveryCodeModel(SignInManager<
ApplicationUser
> signInManager, ILogger<LoginWithRecoveryCodeModel> logger)
45
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
63
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
Pages\Account\Manage\ChangePassword.cshtml.cs (6)
19
private readonly UserManager<
ApplicationUser
> _userManager;
20
private readonly SignInManager<
ApplicationUser
> _signInManager;
24
UserManager<
ApplicationUser
> userManager,
25
SignInManager<
ApplicationUser
> signInManager,
60
var
user = await _userManager.GetUserAsync(User);
82
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\Disable2fa.cshtml.cs (4)
18
private readonly UserManager<
ApplicationUser
> _userManager;
22
UserManager<
ApplicationUser
> userManager,
31
var
user = await _userManager.GetUserAsync(User);
47
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\EnableAuthenticator.cshtml.cs (5)
23
private readonly UserManager<
ApplicationUser
> _userManager;
30
UserManager<
ApplicationUser
> userManager,
57
var
user = await _userManager.GetUserAsync(User);
75
var
user = await _userManager.GetUserAsync(User);
105
private async Task LoadSharedKeyAndQrCodeUriAsync(
ApplicationUser
user)
Pages\Account\Manage\ExternalLogins.cshtml.cs (7)
18
private readonly UserManager<
ApplicationUser
> _userManager;
19
private readonly SignInManager<
ApplicationUser
> _signInManager;
22
UserManager<
ApplicationUser
> userManager,
23
SignInManager<
ApplicationUser
> signInManager)
40
var
user = await _userManager.GetUserAsync(User);
56
var
user = await _userManager.GetUserAsync(User);
86
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\GenerateRecoveryCodes.cshtml.cs (3)
18
private readonly UserManager<
ApplicationUser
> _userManager;
22
UserManager<
ApplicationUser
> userManager,
33
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\Index.cshtml.cs (7)
20
private readonly UserManager<
ApplicationUser
> _userManager;
21
private readonly SignInManager<
ApplicationUser
> _signInManager;
25
UserManager<
ApplicationUser
> userManager,
26
SignInManager<
ApplicationUser
> signInManager,
57
var
user = await _userManager.GetUserAsync(User);
83
var
user = await _userManager.GetUserAsync(User);
117
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\ResetAuthenticator.cshtml.cs (4)
18
UserManager<
ApplicationUser
> _userManager;
22
UserManager<
ApplicationUser
> userManager,
30
var
user = await _userManager.GetUserAsync(User);
41
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\SetPassword.cshtml.cs (6)
18
private readonly UserManager<
ApplicationUser
> _userManager;
19
private readonly SignInManager<
ApplicationUser
> _signInManager;
22
UserManager<
ApplicationUser
> userManager,
23
SignInManager<
ApplicationUser
> signInManager)
51
var
user = await _userManager.GetUserAsync(User);
74
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Manage\TwoFactorAuthentication.cshtml.cs (5)
18
private readonly UserManager<
ApplicationUser
> _userManager;
19
private readonly SignInManager<
ApplicationUser
> _signInManager;
23
UserManager<
ApplicationUser
> userManager,
24
SignInManager<
ApplicationUser
> signInManager,
41
var
user = await _userManager.GetUserAsync(User);
Pages\Account\Register.cshtml.cs (5)
20
private readonly SignInManager<
ApplicationUser
> _signInManager;
21
private readonly UserManager<
ApplicationUser
> _userManager;
26
UserManager<
ApplicationUser
> userManager,
27
SignInManager<
ApplicationUser
> signInManager,
71
var
user = new ApplicationUser { UserName = Input.Email, Email = Input.Email };
Pages\Account\ResetPassword.cshtml.cs (3)
18
private readonly UserManager<
ApplicationUser
> _userManager;
20
public ResetPasswordModel(UserManager<
ApplicationUser
> userManager)
70
var
user = await _userManager.FindByEmailAsync(Input.Email);
Startup.cs (1)
39
services.AddIdentity<
ApplicationUser
, IdentityRole>()