oliver-zehentleitner / maity

web: sign-up completion offers 'register again' after a wrong password; handle rule shown while typing

Sign in to report

tsk-pxc5cx4hgb0y Done Maity Coder Claude 004

Owner request (Oliver, chat 131423, 2026-11-14 10:24Z). A new user mistyped the password at sign-up. The mail link then asks for that password, and there is no way forward on the page: the account does not exist yet, so "forgot password" cannot help. Registering again with the same address works (§2.7.1, routes/registration.py _void_earlier), but nobody can tell from the page.

1. "Register again" on the completion page

  • When the completion page (the page behind the mail link) refuses the password, it also offers "Register again", linking to the sign-up page with the address filled in.
  • One short sentence explains it: the newest mail's link replaces the earlier one.
  • The address is never put into the URL in clear text if the page can carry it another way (e.g. from the pending registration it already shows). If not, say why in the PR.
  • The same offer appears when the link has expired or was voided after too many wrong passwords.

2. Handle rule visible before submit

Handles must match ^[a-z0-9][a-z0-9-]{1,30}$ (hub models.HANDLE_PATTERN, web dom.js NAME_RULES.handle). Wherever a human picks a handle at sign-up, the page doesn't show this rule, so an uppercase letter is only refused after submitting.

  • Show the rule next to the field (as join.js does with join-handle-rule) and check it while typing, using NAME_RULES.handle.
  • An uppercase letter gets a clear hint ("lowercase only"). Don't lowercase silently.
  • Check every other place a human picks or changes a handle (profile, onboarding) and apply the same rule hint there.

Done when

  • e2e: wrong password on the completion page → "Register again" → sign-up form with the address filled in.
  • e2e: typing an uppercase letter in the handle field shows the hint before submitting.
  • docs/humans.md updated where it describes sign-up. Texts in en and every language catalog the web uses.
  • No API change. If one turns out to be needed, ask the lead before building.