Table of Contents

Struct AuthLockoutState

Namespace
FishMMO.Database.Data
Assembly
FishMMO-DB.dll

An account's sign-in lockout, as stored.

public readonly struct AuthLockoutState
Inherited Members

Remarks

A lockout is in force only while its instant is in the future. Nothing sweeps a lapsed one, so readers ask with their own clock.

Constructors

AuthLockoutState(DateTime?, DateTime?)

public AuthLockoutState(DateTime? loginLockedUntilUtc, DateTime? twoFactorLockedUntilUtc)

Parameters

loginLockedUntilUtc DateTime?
twoFactorLockedUntilUtc DateTime?

Fields

LoginLockedUntilUtc

Until when password sign-in is refused, or null.

public readonly DateTime? LoginLockedUntilUtc

Field Value

DateTime?

TwoFactorLockedUntilUtc

Until when the second step is refused, or null.

public readonly DateTime? TwoFactorLockedUntilUtc

Field Value

DateTime?

Methods

IsLocked(AuthFailureKind, DateTime)

Whether kind is locked at nowUtc.

public bool IsLocked(AuthFailureKind kind, DateTime nowUtc)

Parameters

kind AuthFailureKind
nowUtc DateTime

Returns

bool