diff --git a/src/components/Home.vue b/src/components/Home.vue index 9a9cb558f..32acba073 100644 --- a/src/components/Home.vue +++ b/src/components/Home.vue @@ -1,9 +1,7 @@ @@ -13,11 +11,11 @@ export default { name: "Home", - data() { + data() { return { - authenticated: auth.user.authenticated + user: auth.user } - }, + }, beforeMount() { // Check if the user is already logged in, if so, redirect him to the homepage if (!auth.user.authenticated) { @@ -25,7 +23,7 @@ } }, methods: { - logout () { + logout() { auth.logout() } },