10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1598599 + 88e543b commit dd70915Copy full SHA for dd70915
app/assets/vue/views/Login.vue
@@ -67,19 +67,20 @@
67
},
68
69
methods: {
70
- performLogin () {
71
- let payload = { login: this.$data.login, password: this.$data.password },
+ performLogin() {
+ let payload = {login: this.$data.login, password: this.$data.password},
72
redirect = this.$route.query.redirect;
73
-
74
this.$store.dispatch('security/login', payload)
75
.then(() => {
76
- if (typeof redirect !== 'undefined') {
77
- this.$router.push({path: redirect});
78
- } else {
79
- this.$router.push({path: '/home'});
+ if (!this.$store.getters['security/hasError']) {
+ if (typeof redirect !== 'undefined') {
+ this.$router.push({path: redirect});
+ } else {
+ this.$router.push({path: '/home'});
80
+ }
81
}
82
});
83
84
85
-</script>
86
+</script>
0 commit comments