1
0
Fork 0

feat: Nach Login und Passwortwechsel auf die Startseite je Rolle

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jonny 2026-11-03 16:05:25 +01:00
parent b89b7e4338
commit 2b2b88b009
2 changed files with 3 additions and 2 deletions

View File

@ -78,7 +78,8 @@ export async function login(formData: FormData): Promise<void> {
if (hatPasswortAenderPflicht(data.user)) { if (hatPasswortAenderPflicht(data.user)) {
redirect(PASSWORT_AENDERN_PFAD); redirect(PASSWORT_AENDERN_PFAD);
} }
redirect(zugang === "superadmin" ? "/plattform" : "/dashboard"); // Startseite je Rolle entscheidet app/page.tsx (navigationFuer).
redirect("/");
} }
export async function logout(): Promise<void> { export async function logout(): Promise<void> {

View File

@ -56,5 +56,5 @@ export async function aendereMeinPasswort(formData: FormData): Promise<void> {
zurueckMitFehler(FREISCHALTUNG_FEHLGESCHLAGEN); zurueckMitFehler(FREISCHALTUNG_FEHLGESCHLAGEN);
} }
redirect("/dashboard"); redirect("/");
} }