fix: harden booking and meeting flows

This commit is contained in:
2026-09-17 02:42:27 +02:00
parent cb30ecade9
commit 66710fc65c
42 changed files with 683 additions and 608 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ import { useState, type FormEvent } from "react";
import { useRouter, useSearchParams } from "next/navigation";
import { ResendVerificationButton } from "./ResendVerificationButton";
import { TextField, FormError } from "@/components/FormField";
import { safeLoginRedirect } from "@/lib/auth/redirect";
export function LoginForm() {
const router = useRouter();
@@ -32,7 +33,7 @@ export function LoginForm() {
setLoading(false);
return;
}
router.push(searchParams.get("next") || "/konto");
router.push(safeLoginRedirect(searchParams.get("next")));
router.refresh();
} catch {
setError("Verbindung fehlgeschlagen. Bitte versuche es erneut.");