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
@@ -67,6 +67,11 @@ async function registerAction(
|
||||
if (error instanceof RegistrationValidationError) {
|
||||
return { errors: { [error.field]: error.message } };
|
||||
}
|
||||
return {
|
||||
errors: {
|
||||
form: "Die Registrierung konnte nicht abgeschlossen werden. Bitte versuchen Sie es später erneut.",
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
redirect("/registrieren/bestaetigt");
|
||||
|
||||
Reference in new issue
Block a user