Implement JWT authentication and user token management
This commit is contained in:
@@ -55,8 +55,8 @@ const store = createStore({
|
||||
logout({ commit }) {
|
||||
commit('clearToken');
|
||||
commit('clearUsername');
|
||||
router.push("/");
|
||||
window.location.reload();
|
||||
router.push('/login'); // Leitet den Benutzer zur Login-Seite um
|
||||
window.location.reload(); // Optional, um den Zustand vollständig zurückzusetzen
|
||||
},
|
||||
|
||||
setCurrentClub({ commit }, club) {
|
||||
|
||||
Reference in New Issue
Block a user