Example #1
0
 public PasswordResetManager(IDbContextFetcher dbContextFetcher, UserManager <MoxUser> userManager, IHttpContextAccessor httpContextAccessor, Mox.Communication.EmailSender emailSender)
 {
     this._context             = dbContextFetcher.FetchDbContext <Data.MoxIdentityDbContext>();
     this._userManager         = userManager;
     this._httpContextAccessor = httpContextAccessor;
     this._emailSender         = emailSender;
 }
Example #2
0
 public MyAccountController(IDbContextFetcher dbContextFetcher, UserManager <MoxUser> userManager, RoleManager <IdentityRole> roleManager, IUserRolesFetcher rolesFetcher, SignInManager <MoxUser> signInManager, IOptions <SettingsOptions> settingsExtension)
 {
     this._context           = dbContextFetcher.FetchDbContext <Data.MoxIdentityDbContext>();
     this._userManager       = userManager;
     this._roleManager       = roleManager;
     this._rolesFetcher      = rolesFetcher as Services.UserRolesFetcher;
     this._signinManager     = signInManager;
     this._settingsExtension = settingsExtension.Value;
 }
 public UserManagementController(IDbContextFetcher dbContextFetcher, IUserValidator <MoxUser> userValidator, UserManager <MoxUser> userManager, RoleManager <IdentityRole> roleManager, IUserRolesFetcher rolesFetcher, SignInManager <MoxUser> signInManager, IStringLocalizer localizer, IOptions <SettingsOptions> settingsExtension, IOptions <MoxIdentityOptions> identityOptions)
 {
     this._context           = dbContextFetcher.FetchDbContext <Data.MoxIdentityDbContext>();
     this._userValidator     = userValidator;
     this._userManager       = userManager;
     this._roleManager       = roleManager;
     this._rolesFetcher      = rolesFetcher as Services.UserRolesFetcher;
     this._signinManager     = signInManager;
     this._localizer         = localizer;
     this._settingsExtension = settingsExtension.Value;
     this._identityOptions   = identityOptions.Value;
 }
 public RoleManagementController(IDbContextFetcher dbContextFetcher, IStringLocalizer localizer)
 {
     this._context   = dbContextFetcher.FetchDbContext <Data.MoxIdentityDbContext>();
     this._localizer = localizer;
 }