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
PasswordThreshold
Failed password proofs inside the window that lock the password step.
public int PasswordThreshold { get; init; }
Property Value
PasswordWindowMinutes
The password failure window, in minutes.
public int PasswordWindowMinutes { get; init; }
Property Value
TwoFactorLockMinutes
How long a two-factor lock lasts, in minutes.
public int TwoFactorLockMinutes { get; init; }
Property Value
TwoFactorThreshold
Failed authenticator or recovery codes inside the window that lock the second step.
public int TwoFactorThreshold { get; init; }
Property Value
TwoFactorWindowMinutes
The two-factor failure window, in minutes.
public int TwoFactorWindowMinutes { get; init; }
Property Value
Methods
From(IConfiguration)
Reads the section, clamping each value to something that can still lock.
public static AuthLockoutOptions From(IConfiguration configuration)
Parameters
configurationIConfiguration