fix(portal): add invitation links and correct customer login routing
All checks were successful
Build and Release FEDEO / verify (push) Successful in 1m7s
Build and Release FEDEO / build-and-release (push) Successful in 6m24s

This commit is contained in:
2026-10-13 18:13:41 +02:00
parent 070be08207
commit 5463106938
10 changed files with 302 additions and 29 deletions

View File

@@ -45,10 +45,7 @@ export default defineNuxtRouteMiddleware(async (to, from) => {
// 3. Wenn eingeloggt
if (to.path === "/login") {
if (auth.user.must_change_password) {
return navigateTo("/password-change")
}
return navigateTo(isPortalUser ? "/customer-portal" : "/")
return navigateTo(auth.getLandingPath())
}
if (auth.user.must_change_password && to.path !== "/password-change") {