PasswordOptions Class

Summary

Specifies options for password requirements.

Syntax

public class PasswordOptions

GitHub

View on GitHub

class Microsoft.AspNet.Identity.PasswordOptions

Properties

RequireDigit()

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

Return type:System.Boolean
public bool RequireDigit { get; set; }
RequireLowercase()

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

Return type:System.Boolean
public bool RequireLowercase { get; set; }
RequireNonLetterOrDigit()

Gets or sets a flag indicating if passwords must contain a digit or other non-alphabetical character.

Return type:System.Boolean
public bool RequireNonLetterOrDigit { get; set; }
RequireUppercase()

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

Return type:System.Boolean
public bool RequireUppercase { get; set; }
RequiredLength()

Gets or sets the minimum length a password must be.

Return type:System.Int32
public int RequiredLength { get; set; }