public ChangePasswordModel(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IPasswordBreachChecker passwordBreachChecker,
     ILogger <ChangePasswordModel> logger)
 {
     this.userManager           = userManager;
     this.signInManager         = signInManager;
     this.passwordBreachChecker = passwordBreachChecker;
     this.logger = logger;
 }
 public RegisterModel(
     IHttpContextAccessor httpContextAccessor,
     UserManager <ApplicationUser> userManager,
     IRegistrationTokenRepository registrationTokenRepository,
     IRegistrationTokenValidator registrationTokenValidator,
     IPasswordBreachChecker passwordBreachChecker,
     ILogger <RegisterModel> logger,
     IEmailRepository emailRepository)
 {
     this.httpContextAccessor         = httpContextAccessor;
     this.userManager                 = userManager;
     this.registrationTokenRepository = registrationTokenRepository;
     this.registrationTokenValidator  = registrationTokenValidator;
     this.passwordBreachChecker       = passwordBreachChecker;
     this.logger          = logger;
     this.emailRepository = emailRepository;
 }
Exemple #3
0
 public ResetPasswordModel(UserManager <ApplicationUser> userManager, IPasswordBreachChecker passwordBreachChecker)
 {
     this.userManager           = userManager;
     this.passwordBreachChecker = passwordBreachChecker;
 }
Exemple #4
0
 public void Setup()
 {
     objPasswordChecker   = new PasswordStringValidations();
     objDataBreachChecker = new DataBreachChecker(PWNEDApiURL, UserAgent, HIBPApiKey, RangeApiURL);
 }