Update frontend/src/views/Pages/Login.vue

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
This commit is contained in:
Ulf Gebhardt 2021-12-10 14:51:10 +01:00 committed by GitHub
parent 9b90b42953
commit 83a2269a42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,8 +104,11 @@ export default {
this.$router.push('/overview')
loader.hide()
})
.catch(() => {
.catch((error) => {
this.$toasted.global.error(this.$t('error.no-account'))
if (error.message.uncludes('User email not validated')) {
this.$router.push('/reset/login')
}
loader.hide()
})
},