// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNetCore.Identity { /// /// Specifies options for password requirements. /// public class PasswordOptions { /// /// Gets or sets the minimum length a password must be. /// /// /// This defaults to 6. /// public int RequiredLength { get; set; } = 6; /// /// Gets or sets a flag indicating if passwords must contain a non-alphanumeric character. /// /// True if passwords must contain a non-alphanumeric character, otherwise false. /// /// This defaults to true. /// public bool RequireNonAlphanumeric { get; set; } = true; /// /// Gets or sets a flag indicating if passwords must contain a lower case ASCII character. /// /// True if passwords must contain a lower case ASCII character. /// /// This defaults to true. /// public bool RequireLowercase { get; set; } = true; /// /// Gets or sets a flag indicating if passwords must contain a upper case ASCII character. /// /// True if passwords must contain a upper case ASCII character. /// /// This defaults to true. /// public bool RequireUppercase { get; set; } = true; /// /// Gets or sets a flag indicating if passwords must contain a digit. /// /// True if passwords must contain a digit. /// /// This defaults to true. /// public bool RequireDigit { get; set; } = true; } }