اقرأ باللغة الإنجليزية

مشاركة عبر


PasswordOptions Class

Definition

Specifies options for password requirements.

C#
public class PasswordOptions
Inheritance
PasswordOptions

Constructors

Properties

RequireDigit

Gets or sets a flag indicating if passwords must contain a digit. Defaults to true.

RequiredLength

Gets or sets the minimum length a password must be. Defaults to 6.

RequiredUniqueChars

Gets or sets the minimum number of unique characters which a password must contain. Defaults to 1.

RequireLowercase

Gets or sets a flag indicating if passwords must contain a lower case ASCII character. Defaults to true.

RequireNonAlphanumeric

Gets or sets a flag indicating if passwords must contain a non-alphanumeric character. Defaults to true.

RequireUppercase

Gets or sets a flag indicating if passwords must contain a upper case ASCII character. Defaults to true.

Applies to

منتج الإصدارات
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0