예제 #1
0
 public ForgotPasswordModel(UserManager <User> userManager, Microsoft.AspNetCore.Identity.UI.Services.IEmailSender emailSender, IAuthService au, IGlobalService globalService)
 {
     _userManager   = userManager;
     _emailSender   = emailSender;
     _au            = au;
     _globalService = globalService;
 }
예제 #2
0
 public UserRegistrationController(IUnitofWork unitofWork, IMapper mapper, IWebHostEnvironment hostingEnvironment, UserManager <IdentityUser> userManager, RoleManager <IdentityRole> roleManager, SignInManager <IdentityUser> signInManager, IEmailSender emailSender)
 {
     _unitofWork         = unitofWork;
     _mapper             = mapper;
     _hostingEnvironment = hostingEnvironment;
     _userManager        = userManager;
     _roleManager        = roleManager;
     _signInManager      = signInManager;
     _emailSender        = emailSender;
 }
예제 #3
0
 public AccountController(UserManager <ApplicationUser> usermanager, SignInManager <ApplicationUser> signinmanager, RoleManager <IdentityRole> roleManager, Microsoft.AspNetCore.Identity.UI.Services.IEmailSender emailSender, IConfiguration configuration, ApplicationDbContext _context, IHostingEnvironment hostingEnvironment, IHubContext <NotificationHub> _hubContext)
 {
     Usermanager             = usermanager;
     Signinmanager           = signinmanager;
     Rolemanager             = roleManager;
     _emailSender            = emailSender;
     Configuration           = configuration;
     this.hostingEnvironment = hostingEnvironment;
     util       = new utilities(_context, hostingEnvironment, configuration);
     hubContext = _hubContext;
 }