removed crappy test login files

This commit is contained in:
Tobias Kurze
2019-03-22 16:38:09 +01:00
parent 102db7ae0c
commit 1ee42cb01b
17 changed files with 86 additions and 769 deletions

View File

@@ -43,31 +43,31 @@
return {
email: '',
password: '',
errorMsg: ''
}
errorMsg: '',
};
},
methods: {
authenticate () {
this.$store.dispatch('login', { email: this.email, password: this.password })
.then(() => this.$router.push('/'))
.then(() => this.$router.push('/'));
},
register () {
this.$store.dispatch('register', { email: this.email, password: this.password })
.then(() => this.$router.push('/'))
}
.then(() => this.$router.push('/'));
},
},
mounted () {
EventBus.$on('failedRegistering', (msg) => {
this.errorMsg = msg
})
});
EventBus.$on('failedAuthentication', (msg) => {
this.errorMsg = msg
})
});
},
beforeDestroy () {
EventBus.$off('failedRegistering')
EventBus.$off('failedAuthentication')
}
EventBus.$off('failedRegistering');
EventBus.$off('failedAuthentication');
},
}
</script>
@@ -76,4 +76,4 @@
color: red;
font-weight: bold;
}
</style>
</style>