Exemple #1
0
 public PasswordConfirmationService(
     IOptions <ResetPasswordSettings> settings,
     ILogger <EmailConfirmationService> logger,
     IIdentitiesService identitiesService,
     IIdentityTokensService identityTokensService,
     IMailSender mailSender)
 {
     _settings              = settings.Value;
     _logger                = logger;
     _identitiesService     = identitiesService;
     _identityTokensService = identityTokensService;
     _mailSender            = mailSender;
 }
Exemple #2
0
 public IdentityService(
     IWebHostEnvironment env,
     IOptions <AppSettings> appSettings,
     IOptions <ResetPasswordSettings> resetPasswordSettings,
     IOptions <EmailSettings> emailSettings,
     IJwtTokenRepository jwtTokenRepository,
     ISenderEmailRepository senderEmailRepository)
 {
     _appSettings           = appSettings.Value;
     _resetPasswordSettings = resetPasswordSettings.Value;
     _emailSettings         = emailSettings.Value;
     _jwtTokenRepository    = jwtTokenRepository;
     _env = env;
     _senderEmailRepository = senderEmailRepository;
 }
Exemple #3
0
 public AuthenticateResolver(IUserManager <ApplicationUser> userManager, ILoginManager <ApplicationUser> loginManager,
                             IEmailProvider emailSender, IOptions <AppSettings> appSettings,
                             IOptions <ResetPasswordSettings> resetPasswordSettings, IJwtHelper jwtHelper, IOptions <JwtConfigOptions> jwtConfigOptions,
                             IHttpContextAccessor httpContextAccessor)
     : base()
 {
     _userManager           = userManager;
     _loginManager          = loginManager;
     _appSettings           = appSettings.Value;
     _resetPasswordSettings = resetPasswordSettings.Value;
     _emailSender           = emailSender;
     _jwtHelper             = jwtHelper;
     _jwtConfigOptions      = jwtConfigOptions.Value;
     _httpContextAccessor   = httpContextAccessor;
 }