Files
CatoandClaude Opus 5.5 273a63398d feat(auth): sign in with OrangeCat (#526)
OrangeCat becomes the primary way into evig. The provider, the
users.orangecat_actor_id key (migration 141) and the never-link-by-email
rules already shipped in #523; this change puts them first in the UI.

- /auth/login: "Mit OrangeCat anmelden" is the first, full-width primary
  button. The password form sits behind "Mit E-Mail und Passwort anmelden"
  so the existing accounts keep their way in. It opens by itself when the
  visitor arrives from a verify or reset link, or with an error.
- /auth/register: leads with "Konto mit OrangeCat erstellen" (Google,
  GitHub or email) and the AGB/Datenschutz note. The password wizard is
  one click behind it. Someone already mid-registration stays on the
  password path.
- Both pages share components/auth/OrangeCatSignIn.tsx. It asks
  /api/auth/providers whether the provider is mounted. Without the env
  pair it shows the password form alone, so there is never a dead button.
- The provider id moved to a crypto-free module. The client buttons and
  the server config now import one constant instead of mirroring it.
  A test pins it to "orangecat", since the registered callback depends on it.
- The e2e ensureAuthenticated helper opens the disclosure and clicks the
  form's own submit, because three buttons now say "anmelden".
- Strings are added in all 8 locales.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 09:51:27 -07:00
..