Table of Contents

Struct SrpAuthenticatorCore<TConnection>.SrpAccountLookupResult

Namespace
FishMMO.Auth.Implementation
Assembly
FishMMO-ServerAuth.dll

Result of an account fetch for SRP login.

public struct SrpAuthenticatorCore<TConnection>.SrpAccountLookupResult
Inherited Members

Fields

AccessLevel

Account access level.

public AccessLevel AccessLevel

Field Value

AccessLevel

AccountName

The canonical account name, when the lookup was by email or case differs. Keys the database-backed lockout and the beta gate, and is the identity a successful proof signs in as: the token, and everything the world server keys by account, carry this name, never the typed identifier. Null means "use the identifier".

public string? AccountName

Field Value

string

DiscordVerificationCodeOwed

For an unverified account: whether it is owed a Discord code that has never been issued. See TryIssueDiscordVerificationCodeAsync(string).

public bool DiscordVerificationCodeOwed

Field Value

bool

EmailVerificationPending

For an unverified account: whether the email code is outstanding.

public bool EmailVerificationPending

Field Value

bool

IsServerError

Set with IsSuccess false when the lookup failed because the database could not be read, as opposed to there being no such account. Answered ServerBusy instead of through the fake-salt path, so a fault is never counted as a wrong password.

public bool IsServerError

Field Value

bool

IsSuccess

Whether the account was found and fetchable.

public bool IsSuccess

Field Value

bool

IsVerified

Whether the account may sign in without a code: verified, or not asked for one by this server.

public bool IsVerified

Field Value

bool

PhoneVerificationPending

For an unverified account: whether the SMS code is outstanding.

public bool PhoneVerificationPending

Field Value

bool

PhoneVerifyCodeExpiresUtc

UTC expiry for the SMS verification code; null when none has been issued.

public DateTime? PhoneVerifyCodeExpiresUtc

Field Value

DateTime?

Salt

SRP salt.

public string Salt

Field Value

string

TotpEnabled

Whether TOTP is enabled for this account.

public bool TotpEnabled

Field Value

bool

Verifier

SRP verifier.

public string Verifier

Field Value

string

VerifyCodeExpiresUtc

UTC expiry for the verification code (null if not applicable).

public DateTime? VerifyCodeExpiresUtc

Field Value

DateTime?