Table of Contents

Struct PasswordResetTokenData

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

Data transfer object for an outstanding password reset token.

public struct PasswordResetTokenData
Inherited Members

Remarks

Carries the stored hash, never a redeemable token: the token exists only in the email and in the browser that received it.

Constructors

PasswordResetTokenData(long, string, string, DateTime, DateTime, DateTime?, string?)

public PasswordResetTokenData(long id, string accountName, string tokenHash, DateTime createdUtc, DateTime expiresUtc, DateTime? usedUtc, string? requestedIp)

Parameters

id long
accountName string
tokenHash string
createdUtc DateTime
expiresUtc DateTime
usedUtc DateTime?
requestedIp string

Fields

AccountName

Account the token was issued for.

public readonly string AccountName

Field Value

string

CreatedUtc

When the token was issued.

public readonly DateTime CreatedUtc

Field Value

DateTime

ExpiresUtc

When the token stops being redeemable.

public readonly DateTime ExpiresUtc

Field Value

DateTime

ID

Surrogate key.

public readonly long ID

Field Value

long

RequestedIp

Client address that asked for the reset, or null.

public readonly string? RequestedIp

Field Value

string

TokenHash

Lowercase hex SHA-256 of the emailed token.

public readonly string TokenHash

Field Value

string

UsedUtc

When the token was redeemed, or null while outstanding.

public readonly DateTime? UsedUtc

Field Value

DateTime?