Correct behavior of errors on the login form
This commit is contained in:
parent
2ae43e1f61
commit
8b9c2465f3
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue