Struct PasswordResetTokenData
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
idlongaccountNamestringtokenHashstringcreatedUtcDateTimeexpiresUtcDateTimeusedUtcDateTime?requestedIpstring
Fields
AccountName
Account the token was issued for.
public readonly string AccountName
Field Value
CreatedUtc
When the token was issued.
public readonly DateTime CreatedUtc
Field Value
ExpiresUtc
When the token stops being redeemable.
public readonly DateTime ExpiresUtc
Field Value
ID
Surrogate key.
public readonly long ID
Field Value
RequestedIp
Client address that asked for the reset, or null.
public readonly string? RequestedIp
Field Value
TokenHash
Lowercase hex SHA-256 of the emailed token.
public readonly string TokenHash
Field Value
UsedUtc
When the token was redeemed, or null while outstanding.
public readonly DateTime? UsedUtc