5 writes to RequiredLength
Microsoft.AspNetCore.Identity.Test (5)
IdentityOptionsTest.cs (1)
40
var services = new ServiceCollection().Configure<IdentityOptions>(options => options.Password.
RequiredLength
= -1);
PasswordValidatorTest.cs (4)
72
manager.Options.Password.
RequiredLength
= 0;
89
manager.Options.Password.
RequiredLength
= 0;
105
manager.Options.Password.
RequiredLength
= 0;
126
manager.Options.Password.
RequiredLength
= 0;
4 references to RequiredLength
Microsoft.AspNetCore.Identity.Test (2)
IdentityOptionsTest.cs (2)
25
Assert.Equal(6, options.Password.
RequiredLength
);
54
Assert.Equal(-1, myOptions.Password.
RequiredLength
);
Microsoft.Extensions.Identity.Core (2)
PasswordValidator.cs (2)
46
if (string.IsNullOrWhiteSpace(password) || password.Length < options.
RequiredLength
)
49
errors.Add(Describer.PasswordTooShort(options.
RequiredLength
));