feat(email): improve password reset emails, onboarding templates, and handle server action errors without production obfuscation
All checks were successful
Staging Build / build (push) Successful in 3m28s

This commit is contained in:
DanielS
2026-07-03 13:34:43 +02:00
parent f914e9cdf1
commit 12d06e46ad
4 changed files with 148 additions and 36 deletions

View File

@@ -43,8 +43,12 @@ export function UpdatePasswordForm({
}
try {
await updatePassword(password);
router.push("/");
const res = await updatePassword(password);
if (res.success) {
router.push("/");
} else {
setError(res.error || "Ein Fehler ist aufgetreten");
}
} catch (error: unknown) {
setError(error instanceof Error ? error.message : "Ein Fehler ist aufgetreten");
} finally {