Table of Contents

Enum EmailKind

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

What an outbound email in email_queue is for.

public enum EmailKind

Fields

PasswordReset = 1

Password recovery. Delivering one changes nothing about the account's verification state.

SecurityNotice = 2

A security notice to the account holder: a two-factor reset was requested, cancelled or completed, or sign-in was locked after repeated failures. Delivering one changes nothing about the account's verification state, for the same reason a password reset does not.

Verification = 0

Account or email-address verification. Delivering one ends the unverified grace period by stamping verification_email_sent_at.

Remarks

The kind exists because the sender does something after a successful delivery that only makes sense for one of them. A verification mail ends the new account's grace period: once verification_email_sent_at is stamped, an unverified account can no longer sign in to the game or the panel until it verifies. A password reset mail must leave that stamp alone — stamping it would lock an unverified player out of everything at the exact moment they finished recovering their password.

This is a column and not a look at the subject line. Five separate subject literals already exist across the LoginServer, the panel's registration, email-change and reset paths; deciding a lockout from one of them would mean a reworded subject silently changes who can log in, with nothing anywhere saying so.

Verification is 0 so that the column's NOT NULL DEFAULT 0 gives every row written before this existed — and every row still written by a caller that does not name a kind — the meaning it already had.