Struct ChangeEmailVerifyResult

Assembly: redb.Identity.Core.dll

Result of .

public readonly record struct ChangeEmailVerifyResult : IEquatable<ChangeEmailVerifyResult>

Implements

Properties

CurrentEmail

Lower-cased snapshot of the e-mail at issue time; empty when is false.

public string CurrentEmail { get; init; }

NewEmail

Lower-cased target address bound at issue time; empty when is false.

public string NewEmail { get; init; }

Reason

Diagnostic reason; values: ok, not_found, expired, already_consumed, bad_token.

public string Reason { get; init; }

Success

Whether the token verified AND the row was successfully consumed.

public bool Success { get; init; }

UserId

Owner user id when is true; otherwise 0.

public long UserId { get; init; }

Constructors