Table of Contents

Struct AccountData

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

Account data transfer object.

public struct AccountData
Inherited Members

Constructors

AccountData(string, string, string, byte, string?, int, bool, string?, DateTime?, long, string?, bool, int, DateTime?, DateTime?, DateTime, DateTime)

Initializes a new instance of the AccountData struct.

public AccountData(string name, string salt, string verifier, byte accessLevel, string? email, int age, bool totpEnabled, string? totpSecret, DateTime? totpVerifiedAt, long lastTotpWindow, string? discordLinkCode, bool verified, int verifyCode, DateTime? verifyCodeExpiresUtc, DateTime? verificationEmailSentAt, DateTime created, DateTime lastLogin)

Parameters

name string
salt string
verifier string
accessLevel byte
email string
age int
totpEnabled bool
totpSecret string
totpVerifiedAt DateTime?
lastTotpWindow long
discordLinkCode string
verified bool
verifyCode int
verifyCodeExpiresUtc DateTime?
verificationEmailSentAt DateTime?
created DateTime
lastLogin DateTime

Fields

AccessLevel

Account access level.

public readonly byte AccessLevel

Field Value

byte

Age

Account holder age. Zero if not provided.

public readonly int Age

Field Value

int

Created

Account creation timestamp (UTC).

public readonly DateTime Created

Field Value

DateTime

DiscordLinkCode

Temporary code for Discord account linking. Null when no link is pending.

public readonly string? DiscordLinkCode

Field Value

string

Email

Contact email address. Null if not provided.

public readonly string? Email

Field Value

string

LastLogin

Last login timestamp (UTC).

public readonly DateTime LastLogin

Field Value

DateTime

LastTotpWindow

Last TOTP time-step window successfully used, for replay attack prevention.

public readonly long LastTotpWindow

Field Value

long

Name

Account name (unique identifier).

public readonly string Name

Field Value

string

Salt

Password salt for SRP authentication.

public readonly string Salt

Field Value

string

TotpEnabled

Whether TOTP two-factor authentication is enabled.

public readonly bool TotpEnabled

Field Value

bool

TotpSecret

Base32-encoded TOTP secret key, encrypted at rest. Null when not set up.

public readonly string? TotpSecret

Field Value

string

TotpVerifiedAt

Timestamp (UTC) of the first successful TOTP verification. Null when setup not confirmed.

public readonly DateTime? TotpVerifiedAt

Field Value

DateTime?

VerificationEmailSentAt

UTC timestamp when the verification email was sent. Null if not yet sent.

public readonly DateTime? VerificationEmailSentAt

Field Value

DateTime?

Verified

Whether the account email has been verified via the registration verification link.

public readonly bool Verified

Field Value

bool

Verifier

Password verifier for SRP authentication.

public readonly string Verifier

Field Value

string

VerifyCode

Random verification code sent to the account email. Zero when no verification is pending.

public readonly int VerifyCode

Field Value

int

VerifyCodeExpiresUtc

UTC expiry for the verification code. Null when no verification is pending.

public readonly DateTime? VerifyCodeExpiresUtc

Field Value

DateTime?