Files
RenewCMS/docs/design/screens/register.md
T

1.9 KiB
Raw Blame History

Register

Route: /register. API: POST /v1/auth/register.

Seen once, on a fresh install. After registering, the new user is logged in but not yet verified, and goes to /register/pending.

Visual reference: RenewCMS Screens Auth.dc.html, groups "Register". Frames: AppFrame.dc.html (shell, sidebar, topbar, drawer) plus the screen frame where listed in components.md.

Copy per state (generated from the board source, pass 2)

Every state below is drawn in light and dark (theme switch on the board), at 1440×900 and 390×844 (both frames sit side by side). Board: RenewCMS Screens Auth.dc.html. Copy is exact; where a cell is empty the state reuses the fixed copy.

Base copy

  • Create the owner account
  • This creates the single admin account for this site. Once it's verified, registration closes.
  • Create account
  • Already set up?
  • Log in

Create the owner account (group "Register", 6 states)

Route: /register. API: POST /v1/auth/register.

Seen once, on a fresh install. After registering, the new user is logged in but not yet verified, and goes to /register/pending.

# State Trigger Copy
1 Default Registration is open.
2 Validation errors Checked on blur and on submit, using the same rules as the API. "Use 3 to 20 characters." / "marta@renew" / "Enter a full email address, like name@example.com."
3 Filled, valid Every rule is met and the checklist item turns green. "marta@renew.example"
4 Submitting Fields and button are disabled. "marta@renew.example" / "Creating account…"
5 Registration closed (403) Someone already verified an owner account. The form is replaced. "This site already has an owner" / "Log in instead." / "Go to log in"
6 Server error A 500 or no response. The values are kept. "Couldn't create the account" / "Something went wrong on the server. Try again in a moment." / "marta@renew.example"