feat(auth): registration mode on ConnectPage (PUBLIC_ENABLE_REGISTRATION)
Add a login/register toggle to ConnectPage backed by a new useRegisterMutation (register -> /auth/me, mirroring login). The toggle is shown only when REGISTRATION_ENABLED, resolved with the same precedence as the API base URL: runtime window.__APP_CONFIG__ > PUBLIC_ENABLE_REGISTRATION env > default true. The prod runtime-config script injects the runtime flag. The backend's ALLOW_REGISTRATION stays the real authority; this only gates the UI. EN/RU strings added. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
# Default backend URL (overridable at runtime in the UI)
|
||||
PUBLIC_API_BASE_URL=http://localhost:8080/api/v1
|
||||
|
||||
# Show the public sign-up UI on the connect screen. Set to false to hide it.
|
||||
# The backend's ALLOW_REGISTRATION is the real authority; this only gates the UI.
|
||||
PUBLIC_ENABLE_REGISTRATION=true
|
||||
|
||||
Reference in New Issue
Block a user