From 5f80cef54f177292c5fc0bad12d028e46c91203c Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 9 Sep 2018 16:22:02 +0200 Subject: [PATCH] Home now shows something meaningful --- src/components/Home.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/components/Home.vue b/src/components/Home.vue index 9a9cb558..32acba07 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() } },