/// <summary>
 /// Initializes a new instance of the <see cref="PasswordHasherBuilder"/> class.
 /// </summary>
 /// <param name="services">The services.</param>
 /// <exception cref="System.ArgumentNullException">services</exception>
 public PasswordHasherBuilder(IServiceCollection services)
 {
     Services = services ?? throw new ArgumentNullException(nameof(services));
     Options  = new ImprovedPasswordHasherOptions();
 }
Example #2
0
 /// <summary>
 /// Creates a new instance of <see cref="PasswordHasher{TUser}"/>.
 /// </summary>
 /// <param name="optionsAccessor">The options for this instance.</param>
 public Argon2Id(IOptions <ImprovedPasswordHasherOptions> optionsAccessor = null)
 {
     _options = optionsAccessor?.Value ?? new ImprovedPasswordHasherOptions();
 }