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
+2
-2
@@ -1,9 +1,9 @@
|
||||
# Portal database (separate from Immich)
|
||||
DATABASE_URL=postgres://portal:change-me@postgres:5432/portal
|
||||
|
||||
# Better Auth
|
||||
# Better Auth — production public URL. For local dev, set http://localhost:3000 in .env
|
||||
BETTER_AUTH_SECRET=replace-with-a-long-random-secret
|
||||
BETTER_AUTH_URL=http://localhost:3000
|
||||
BETTER_AUTH_URL=https://redaktionen.leon-tonhaeuser.de
|
||||
|
||||
# Internal Immich API access; never expose these values to browsers
|
||||
IMMICH_BASE_URL=http://immich-server:2283
|
||||
|
||||
Reference in new issue
Block a user