PasswordOptions Class¶
Specifies options for password requirements.
- Namespace
Microsoft.AspNetCore.Identity
- Assemblies
- Microsoft.AspNetCore.Identity
Properties¶
-
Microsoft.AspNetCore.Identity.PasswordOptions.
RequireDigit
¶ Gets or sets a flag indicating if passwords must contain a digit.
Return type: System.Boolean Returns: True if passwords must contain a digit. public bool RequireDigit { get; set; }
-
Microsoft.AspNetCore.Identity.PasswordOptions.
RequireLowercase
¶ Gets or sets a flag indicating if passwords must contain a lower case ASCII character.
Return type: System.Boolean Returns: True if passwords must contain a lower case ASCII character. public bool RequireLowercase { get; set; }
-
Microsoft.AspNetCore.Identity.PasswordOptions.
RequireNonAlphanumeric
¶ Gets or sets a flag indicating if passwords must contain a non-alphanumeric character.
Return type: System.Boolean Returns: True if passwords must contain a non-alphanumeric character, otherwise false. public bool RequireNonAlphanumeric { get; set; }
-
Microsoft.AspNetCore.Identity.PasswordOptions.
RequireUppercase
¶ Gets or sets a flag indicating if passwords must contain a upper case ASCII character.
Return type: System.Boolean Returns: True if passwords must contain a upper case ASCII character. public bool RequireUppercase { get; set; }
-
Microsoft.AspNetCore.Identity.PasswordOptions.
RequiredLength
¶ Gets or sets the minimum length a password must be.
Return type: System.Int32 public int RequiredLength { get; set; }
-