Struct AuthLockoutState
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
Fields
LoginLockedUntilUtc
Until when password sign-in is refused, or null.
public readonly DateTime? LoginLockedUntilUtc
Field Value
TwoFactorLockedUntilUtc
Until when the second step is refused, or null.
public readonly DateTime? TwoFactorLockedUntilUtc
Field Value
Methods
IsLocked(AuthFailureKind, DateTime)
Whether kind is locked at nowUtc.
public bool IsLocked(AuthFailureKind kind, DateTime nowUtc)
Parameters
kindAuthFailureKindnowUtcDateTime