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
@@ -7,6 +7,7 @@ import { authClient } from "./client";
|
||||
export type RegistrationFormState = {
|
||||
errors?: Partial<
|
||||
Record<
|
||||
| "form"
|
||||
| "companyName"
|
||||
| "contactName"
|
||||
| "email"
|
||||
@@ -47,6 +48,7 @@ export function RegistrationForm({
|
||||
|
||||
return (
|
||||
<form action={formAction} className="account-form">
|
||||
<FieldError message={state.errors?.form} />
|
||||
<div className="form-grid">
|
||||
<label>
|
||||
Redaktion oder Unternehmen
|
||||
|
||||
Reference in new issue
Block a user