LockoutOptions Class¶
Options for configuring user lockout.
- Namespace
Microsoft.AspNetCore.Identity
- Assemblies
- Microsoft.AspNetCore.Identity
Properties¶
-
Microsoft.AspNetCore.Identity.LockoutOptions.
AllowedForNewUsers
¶ Return type: System.Boolean Returns: True if a newly created user can be locked out, otherwise false. public bool AllowedForNewUsers { get; set; }
-
Microsoft.AspNetCore.Identity.LockoutOptions.
DefaultLockoutTimeSpan
¶ Gets or sets the
System.TimeSpan
a user is locked out for when a lockout occurs.Return type: System.TimeSpan Returns: The System.TimeSpan
a user is locked out for when a lockout occurs.public TimeSpan DefaultLockoutTimeSpan { get; set; }
-
Microsoft.AspNetCore.Identity.LockoutOptions.
MaxFailedAccessAttempts
¶ Gets or sets the number of failed access attempts allowed before a user is locked out, assuming lock out is enabled.
Return type: System.Int32 Returns: The number of failed access attempts allowed before a user is locked out, if lockout is enabled. public int MaxFailedAccessAttempts { get; set; }
-