diff --git a/frontend/src/layouts/MyLayout.vue b/frontend/src/layouts/MyLayout.vue index 7d4edf9..a689d69 100644 --- a/frontend/src/layouts/MyLayout.vue +++ b/frontend/src/layouts/MyLayout.vue @@ -235,7 +235,7 @@ } }, created() { - this.evalAuthentication(); + //this.evalAuthentication(); }, methods: { //openURL diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 944f157..c9ba718 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -82,7 +82,6 @@ export default function ({store}/* { store, ssrContext } */) { return next(); } }).finally(() => { - console.log("finally..."); store.commit('auth/SET_AUTHENTICATED'); store.commit('auth/SET_USER'); }); diff --git a/frontend/src/store/auth/mutations.js b/frontend/src/store/auth/mutations.js index e096bee..9e7fb77 100644 --- a/frontend/src/store/auth/mutations.js +++ b/frontend/src/store/auth/mutations.js @@ -14,7 +14,6 @@ export const SET_LOGOUT = (state) => { localStorage.removeItem('userToken'); state.userAuthenticated = null; state.isAuthenticated = false; - console.log(localStorage.getItem('userToken')); }; export const SET_USER = (state) => { console.log("SET_USER()"); @@ -26,16 +25,13 @@ export const SET_USER = (state) => { } }) .then((response) => { - console.log("GET/POST /api/getUser - response: "); - console.log(response.data); + console.log("GET /api/getUser"); state.userAuthenticated = response.data; state.isAuthenticated = true; if (state.userAuthenticated.hasOwnProperty('password')) delete state.userAuthenticated.password; - console.log(state.userAuthenticated); }) .catch((error) => { - console.log("Catch Block: ") - console.log(error) + console.log("error") }); } else { state.isAuthenticated = false;