Show a sign-in link instead of the registration form after email confirmation #67

Closed
opened 2026-07-18 20:53:22 +00:00 by thatguygriff · 0 comments
Owner

Problem

When a self-signup student clicks the confirmation link from their email, they land on the registration page with ?us_confirmed=1. The page shows the "your email is confirmed, awaiting studio approval" message — but then renders the full registration form underneath it. The form is useless at that point (re-submitting would fail with "an account already exists for this email") and it muddles the message about what happens next.

Desired behaviour

On ?us_confirmed=1, show only the confirmation message plus a "Sign in to your account" link instead of the registration form. A confirmed-but-unapproved student can already log in (the pending gate only withholds booking), so signing in is the natural next step.

Notes

  • The link should point to the studio's front-end sign-in page. There is no stored login-page setting, so follow the booking block's pattern: a loginPageId block attribute / login_page_id shortcode attribute with a page picker in the editor sidebar, falling back to wp_login_url().
  • The us_confirmed=expired notice should keep the form as-is — that visitor may be following a stale link or need to contact the studio.
## Problem When a self-signup student clicks the confirmation link from their email, they land on the registration page with `?us_confirmed=1`. The page shows the "your email is confirmed, awaiting studio approval" message — but then renders the full registration form underneath it. The form is useless at that point (re-submitting would fail with "an account already exists for this email") and it muddles the message about what happens next. ## Desired behaviour On `?us_confirmed=1`, show only the confirmation message plus a **"Sign in to your account"** link instead of the registration form. A confirmed-but-unapproved student can already log in (the pending gate only withholds booking), so signing in is the natural next step. ## Notes - The link should point to the studio's front-end sign-in page. There is no stored login-page setting, so follow the booking block's pattern: a `loginPageId` block attribute / `login_page_id` shortcode attribute with a page picker in the editor sidebar, falling back to `wp_login_url()`. - The `us_confirmed=expired` notice should keep the form as-is — that visitor may be following a stale link or need to contact the studio.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Unsupervised/unsupervised-scheduler#67