Skip to main content
All docs
V25.2
  • LockoutOptions.DefaultLockoutTimeSpan Property

    Specifies the user lockout duration.

    Namespace: DevExpress.ExpressApp.Security

    Assembly: DevExpress.ExpressApp.Security.v25.2.dll

    NuGet Package: DevExpress.ExpressApp.Security

    Declaration

    public TimeSpan DefaultLockoutTimeSpan { get; set; }

    Property Value

    Type Default Description
    TimeSpan TimeSpan.FromMinutes(5)

    A TimeSpan value that specifies the user lockout duration.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to DefaultLockoutTimeSpan
    SecurityOptions
    .Lockout .DefaultLockoutTimeSpan

    Remarks

    You can specify lockout options as follows.

    Files: SolutionName.Blazor.Server\Startup.cs, SolutionName.Win\Startup.cs

    builder.Security
        .UseIntegratedMode(options => {
            options.Lockout.Enabled = true;
            options.Lockout.MaxFailedAccessAttempts = 3;
            options.Lockout.DefaultLockoutTimeSpan = TimeSpan.FromMinutes(3);
            // ...
        })
    
    See Also