From 5a727a6872f693256cd420377a48db1ffe7956cc Mon Sep 17 00:00:00 2001 From: marcsello Date: Sun, 6 Dec 2020 02:13:13 +0100 Subject: [PATCH] Fixed auth --- src/components/Login.vue | 6 ++-- src/components/Register.vue | 7 ++-- src/components/WorkspaceDrawerContent.vue | 11 +++++-- src/router/index.js | 2 +- src/store/auth.js | 40 +++++++++++------------ 5 files changed, 35 insertions(+), 31 deletions(-) diff --git a/src/components/Login.vue b/src/components/Login.vue index f1d88ba..5a8e95d 100644 --- a/src/components/Login.vue +++ b/src/components/Login.vue @@ -41,7 +41,7 @@ export default { }, methods: { performLogin() { - this.$store.dispatch("performLogin", this.creds).then(() => { + this.$store.dispatch("auth/performLogin", this.creds).then(() => { this.$router.push({name: 'Dashboard'}); }).catch(() => { this.invalidLogin = true; @@ -52,14 +52,14 @@ export default { } }, computed: { - ...mapGetters(['authInProgress']) + ...mapGetters('auth', ['authInProgress']) } }