2 instantiations of ApplicationUser
IdentitySample.Mvc (2)
Controllers\AccountController.cs (2)
106
var user = new
ApplicationUser
{ UserName = model.Email, Email = model.Email };
211
var user = new
ApplicationUser
{ UserName = model.Email, Email = model.Email };
35 references to ApplicationUser
IdentitySample.Mvc (35)
Controllers\AccountController.cs (15)
18
private readonly UserManager<
ApplicationUser
> _userManager;
19
private readonly SignInManager<
ApplicationUser
> _signInManager;
25
UserManager<
ApplicationUser
> userManager,
26
SignInManager<
ApplicationUser
> signInManager,
106
var
user = new ApplicationUser { UserName = model.Email, Email = model.Email };
211
var
user = new ApplicationUser { UserName = model.Email, Email = model.Email };
243
var
user = await _userManager.FindByIdAsync(userId);
270
var
user = await _userManager.FindByEmailAsync(model.Email);
319
var
user = await _userManager.FindByEmailAsync(model.Email);
349
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
371
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
409
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
456
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
503
var
user = await _signInManager.GetTwoFactorAuthenticationUserAsync();
545
private Task<
ApplicationUser
> GetCurrentUserAsync()
Controllers\ManageController.cs (18)
16
private readonly UserManager<
ApplicationUser
> _userManager;
17
private readonly SignInManager<
ApplicationUser
> _signInManager;
23
UserManager<
ApplicationUser
> userManager,
24
SignInManager<
ApplicationUser
> signInManager,
50
var
user = await GetCurrentUserAsync();
70
var
user = await GetCurrentUserAsync();
101
var
user = await GetCurrentUserAsync();
113
var
user = await GetCurrentUserAsync();
128
var
user = await GetCurrentUserAsync();
144
var
user = await GetCurrentUserAsync();
160
var
user = await GetCurrentUserAsync();
190
var
user = await GetCurrentUserAsync();
211
var
user = await GetCurrentUserAsync();
242
var
user = await GetCurrentUserAsync();
277
var
user = await GetCurrentUserAsync();
301
var
user = await GetCurrentUserAsync();
334
var
user = await GetCurrentUserAsync();
371
private Task<
ApplicationUser
> GetCurrentUserAsync()
Models\ApplicationDbContext.cs (1)
9
public class ApplicationDbContext : IdentityDbContext<
ApplicationUser
>
Startup.cs (1)
37
services.AddIdentityCore<
ApplicationUser
>()