forked from fahrPool/fahrPool
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:
parent
b89b7e4338
commit
2b2b88b009
|
|
@ -78,7 +78,8 @@ export async function login(formData: FormData): Promise<void> {
|
|||
if (hatPasswortAenderPflicht(data.user)) {
|
||||
redirect(PASSWORT_AENDERN_PFAD);
|
||||
}
|
||||
redirect(zugang === "superadmin" ? "/plattform" : "/dashboard");
|
||||
// Startseite je Rolle entscheidet app/page.tsx (navigationFuer).
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
export async function logout(): Promise<void> {
|
||||
|
|
|
|||
|
|
@ -56,5 +56,5 @@ export async function aendereMeinPasswort(formData: FormData): Promise<void> {
|
|||
zurueckMitFehler(FREISCHALTUNG_FEHLGESCHLAGEN);
|
||||
}
|
||||
|
||||
redirect("/dashboard");
|
||||
redirect("/");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue