fix(portal): add invitation links and correct customer login routing
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user