an incorrect login should always result in an error not in a request to reset the password

This commit is contained in:
Ulf Gebhardt 2021-12-10 00:39:57 +01:00
parent dddd467569
commit 1626f28f20
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -104,13 +104,8 @@ export default {
this.$router.push('/overview') this.$router.push('/overview')
loader.hide() loader.hide()
}) })
.catch((error) => { .catch(() => {
if (error.message.includes('No user with this credentials')) {
this.$toasted.global.error(this.$t('error.no-account')) this.$toasted.global.error(this.$t('error.no-account'))
} else {
// : this.$t('error.no-email-verify')
this.$router.push('/reset/login')
}
loader.hide() loader.hide()
}) })
}, },