Esempio n. 1
0
 public IndexModel(IPwnedBreachService pwnedService,
                   IPwnedPasswordService pwnedPasswordService,
                   ILogger <IndexModel> logger)
 {
     _pwnedBreachService   = pwnedService;
     _pwnedPasswordService = pwnedPasswordService;
     _logger = logger;
 }
Esempio n. 2
0
 public LoginModel(SignInManager <PwnedWebUser> signInManager,
                   IPwnedPasswordService passwordService,
                   ILogger <LoginModel> logger)
 {
     _signInManager   = signInManager;
     _logger          = logger;
     _passwordService = passwordService;
 }
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IIdentityServerInteractionService interaction,
     IClientStore clientStore,
     IAuthenticationSchemeProvider schemeProvider,
     IEventService events,
     IPwnedPasswordService pwnedPasswordService)
 {
     _userManager     = userManager;
     _signInManager   = signInManager;
     _interaction     = interaction;
     _clientStore     = clientStore;
     _schemeProvider  = schemeProvider;
     _events          = events;
     _pwnedPwdService = pwnedPasswordService;
 }
Esempio n. 4
0
 public AccountController(
     UserManager <AppUser> userManager,
     SignInManager <AppUser> signInManager,
     IAsyncDocumentSession asyncDocumentSession,
     ILogger <AccountController> logger,
     IEmailService emailSender,
     IOptionsMonitor <AppSettings> appOptions,
     IOptionsMonitor <EmailSettings> emailOptions,
     IMapper mapper,
     IPwnedPasswordService pwnedPasswordService)
     : base(asyncDocumentSession, logger)
 {
     this.signInManager        = signInManager;
     this.userManager          = userManager;
     this.emailSender          = emailSender;
     this.appOptions           = appOptions.CurrentValue;
     this.mapper               = mapper;
     this.pwnedPasswordService = pwnedPasswordService;
     this.emailOptions         = emailOptions.CurrentValue;
 }
 /// <summary>
 /// Constructor for <see cref="IPwnedPasswordService"/>.
 /// </summary>
 /// <param name="passwordService"></param>
 public PwnedPasswordValidator(IPwnedPasswordService passwordService)
 {
     _passwordService = passwordService;
 }
 public PwnedPasswordValidator(IPwnedPasswordService service)
 {
     _service = service ?? throw new ArgumentNullException(nameof(service));
 }
 public PasswordStrengthService(IPwnedPasswordService pwnedPasswordService)
 {
     _pwnedPasswordService = pwnedPasswordService;
 }