Skip to content

Commit 8b9c246

Browse files
committed
Correct behavior of errors on the login form
1 parent 2ae43e1 commit 8b9c246

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/assets/scripts/components/auth/LoginForm.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
},
6363
data: function () {
6464
return {
65-
errors: [],
6665
showSpinner: false,
6766
}
6867
},
@@ -91,7 +90,7 @@
9190
this.$props.user.password = '';
9291
this.$data.showSpinner = false;
9392
this.$refs.password.focus();
94-
this.$store.dispatch('auth/logout');
93+
this.$store.commit('auth/logout');
9594
9695
if (!err.response) {
9796
return console.error(err);

0 commit comments

Comments
 (0)