refactor: login redirect
All checks were successful
JS Unit Tests / test (pull_request) Successful in 15s
Build Test / build (pull_request) Successful in 20s
PHP Unit Tests / test (pull_request) Successful in 53s

Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
2026-02-22 12:37:27 -05:00
parent 8560aef5e2
commit aa52693dd9

View File

@@ -1,6 +1,5 @@
import { defineStore } from 'pinia';
import { ref, computed } from 'vue';
import { router } from '@KTXC/router';
import { authenticationService } from '@KTXC/services/authenticationService';
import { userService } from '@KTXC/services/user/userService';
import type { AuthenticatedUser } from '@KTXC/types/authenticationTypes';
@@ -80,7 +79,7 @@ export const useUserStore = defineStore('userStore', () => {
clearAuth();
clearProfile();
clearSettings();
router.push('/login');
window.location.href = '/login';
}
}