Skip to content

PhoenixKit 2.22.7: A clearer confirm-your-email screen

PhoenixKit 2.22.7 reworks the screen a signed-in user sees while their email address is still unconfirmed.

The card, Confirm your email to continue, now says when the last confirmation email went out, for example “Sent 3m ago”, or that none is on record. The email address is shown as plain text instead of a greyed-out field that looked required. The button is now Resend email, and the Wrong email? Change it form explains why it asks for the password.

The Register and Log in links on that screen only led back to it for a user who was already signed in. They are replaced by a single Log out link. A signed-out visitor asking for a new link still sees Register and Log in.

Full release notes: PhoenixKit 2.22.7

2.22.7 · 8 September 2026

Changed

  • Reworked the parked “confirm your email” screen (/users/confirm for an already-logged-in, unconfirmed user). The card now says what actually happened and when (“Sent 3m ago”, backed by a real read of the confirmation token’s inserted_at — there was previously no record shown at all); the email field is a plain read-only display instead of a disabled-looking, falsely-required <input>; the resend button reads “Resend email” instead of the truncation-prone “Resend confirmation instructions”; and the “Wrong email? Change it” password re-entry now explains itself instead of looking arbitrary to an already-authenticated visitor.
  • The Register / Log in links on that same screen were nonsensical for a parked, already-authenticated visitor — clicking either just bounced back to the same confirmation gate. They’re now a single Log out link while parked, matching the pattern already used on the referral-gate screen; the anonymous “resend instructions” form (no session) keeps Register / Log in.

Added

  • PhoenixKit.Users.Auth.get_last_confirmation_sent_at/1 — the inserted_at of a user’s most recent live confirmation-email token, nil if none is on record. Backs the “Sent X ago” wording above.

PhoenixKit 2.22.7. Install or update: {:phoenix_kit, "~> 2.22"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.