Table of Contents

Class AuthLockoutOptions

Namespace
FishMMO.ControlPanel.Services
Assembly
FishMMO-ControlPanel.dll

Sign-in lockout thresholds (Auth:Lockout:*).

public sealed class AuthLockoutOptions
Inheritance
AuthLockoutOptions
Inherited Members

Remarks

The counters live in the database and the LoginServer counts into the same columns, so these numbers must match the game's. The defaults are the shard defaults; change them in both places or neither.

Properties

PasswordLockMinutes

How long a password lock lasts, in minutes.

public int PasswordLockMinutes { get; init; }

Property Value

int

PasswordThreshold

Failed password proofs inside the window that lock the password step.

public int PasswordThreshold { get; init; }

Property Value

int

PasswordWindowMinutes

The password failure window, in minutes.

public int PasswordWindowMinutes { get; init; }

Property Value

int

TwoFactorLockMinutes

How long a two-factor lock lasts, in minutes.

public int TwoFactorLockMinutes { get; init; }

Property Value

int

TwoFactorThreshold

Failed authenticator or recovery codes inside the window that lock the second step.

public int TwoFactorThreshold { get; init; }

Property Value

int

TwoFactorWindowMinutes

The two-factor failure window, in minutes.

public int TwoFactorWindowMinutes { get; init; }

Property Value

int

Methods

From(IConfiguration)

Reads the section, clamping each value to something that can still lock.

public static AuthLockoutOptions From(IConfiguration configuration)

Parameters

configuration IConfiguration

Returns

AuthLockoutOptions