fix: wire editorial approval, harden registration, set production auth URL
- Wire admin approval UI to editorialService.approveEditorial so editorial accounts can move pending_approval -> active and log in. The approve button was permanently disabled and the service unreachable, so editorial users could never sign in. - Surface non-validation errors (e.g. SMTP failures) on the registration form instead of silently redirecting to the confirmation page. - Set BETTER_AUTH_URL default to the production domain in .env.example and compose.yaml so verification/reset links and the login origin check resolve against the live origin. - Add scripts/check-smtp.ts to verify SMTP connectivity against the configured transport. Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
907beb6e42
commit
268ea7544e
8 files changed
+228
-12
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ services:
|
||||
environment:
|
||||
DATABASE_URL: ${DATABASE_URL:-postgres://portal:change-me@portal-db:5432/portal}
|
||||
BETTER_AUTH_SECRET: ${BETTER_AUTH_SECRET}
|
||||
BETTER_AUTH_URL: ${BETTER_AUTH_URL:-http://localhost:3000}
|
||||
BETTER_AUTH_URL: ${BETTER_AUTH_URL:-https://redaktionen.leon-tonhaeuser.de}
|
||||
IMMICH_BASE_URL: ${IMMICH_BASE_URL}
|
||||
IMMICH_API_KEY: ${IMMICH_API_KEY}
|
||||
SMTP_HOST: ${SMTP_HOST}
|
||||
|
||||
Reference in new issue
Block a user