Compare commits

...

2 Commits

Author SHA1 Message Date
6226c9f632 Merge branch 'front_foundation' of https://gitea.piair.dev/piair/MyINPulse into front_foundation
All checks were successful
Format / formatting (push) Successful in 6s
Build / build (push) Successful in 38s
CI / build (push) Successful in 12s
Format / formatting (pull_request) Successful in 6s
2025-04-23 10:06:32 +02:00
7fce831c75 feat: rooting corrected 2025-04-23 10:05:27 +02:00
3 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ onMounted(() => {
const roles = decoded.realm_access?.roles || [];
if (roles.includes("MyINPulse-admin")) {
router.push("/");
router.push("/admin");
} else if (roles.includes("MyINPulse-entrepreneur")) {
router.push("/leanCanva");
}

View File

@ -12,12 +12,12 @@ const router = createRouter({
component: () => import("../views/testComponent.vue"),
},
{
path: "/login",
path: "/",
name: "login",
component: () => import("../components/LoginComponent.vue"),
},
{
path: "/",
path: "/admin",
name: "Admin-main",
component: () => import("../views/AdminMain.vue"),
},

View File

@ -54,7 +54,7 @@ const useAuthStore = defineStore("storeAuth", {
async logout() {
try {
await keycloakService.CallLogout(
import.meta.env.VITE_APP_URL + "/login" //redirect to login page instead of test...
import.meta.env.VITE_APP_URL + "/" //redirect to login page instead of test...
);
await this.clearUserData();
} catch (error) {