From 83a2269a42c413e68efd8d4c63e88464f526c389 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Fri, 10 Dec 2021 14:51:10 +0100 Subject: [PATCH] Update frontend/src/views/Pages/Login.vue Co-authored-by: Hannes Heine --- frontend/src/views/Pages/Login.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Pages/Login.vue b/frontend/src/views/Pages/Login.vue index 0d51cc4c6..8364f15ab 100755 --- a/frontend/src/views/Pages/Login.vue +++ b/frontend/src/views/Pages/Login.vue @@ -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() }) },