Table of Contents

Class TwoFactorRecoveryCodeEntity

Namespace
FishMMO.Database.Npgsql.Entities
Assembly
FishMMO-DB.dll

Stores hashed two-factor recovery codes for an account. Recovery codes are one-time-use fallbacks when TOTP is unavailable. The server hashes codes before storage; this layer stores opaque hashes only.

public class TwoFactorRecoveryCodeEntity
Inheritance
TwoFactorRecoveryCodeEntity
Inherited Members

Properties

Account

Navigation property to the account entity.

public AccountEntity Account { get; set; }

Property Value

AccountEntity

AccountName

Account the recovery code belongs to.

public string AccountName { get; set; }

Property Value

string

CodeHash

Hashed recovery code value.

public string CodeHash { get; set; }

Property Value

string

ID

Primary key.

public long ID { get; set; }

Property Value

long

TimeCreated

Timestamp when the code was created.

public DateTime TimeCreated { get; set; }

Property Value

DateTime

UsedAt

Timestamp when the code was used (null if unused).

public DateTime? UsedAt { get; set; }

Property Value

DateTime?