From 8b9c2465f31a54f3746e52b563117887081d224e Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 14 Jul 2018 21:26:08 -0700 Subject: [PATCH] Correct behavior of errors on the login form --- resources/assets/scripts/components/auth/LoginForm.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/assets/scripts/components/auth/LoginForm.vue b/resources/assets/scripts/components/auth/LoginForm.vue index 127343546..cb0e2a5f7 100644 --- a/resources/assets/scripts/components/auth/LoginForm.vue +++ b/resources/assets/scripts/components/auth/LoginForm.vue @@ -62,7 +62,6 @@ }, data: function () { return { - errors: [], showSpinner: false, } }, @@ -91,7 +90,7 @@ this.$props.user.password = ''; this.$data.showSpinner = false; this.$refs.password.focus(); - this.$store.dispatch('auth/logout'); + this.$store.commit('auth/logout'); if (!err.response) { return console.error(err);