From f1b28a640e5d27e2e51903165cec5a5fc10ad98b Mon Sep 17 00:00:00 2001 From: elweyn Date: Tue, 14 Dec 2021 08:09:47 +0100 Subject: [PATCH] In case where their is no password set now we need to send the user to a page to change his password. --- frontend/src/views/Pages/Login.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/views/Pages/Login.vue b/frontend/src/views/Pages/Login.vue index d7f09ea4c..4d2b75d2a 100755 --- a/frontend/src/views/Pages/Login.vue +++ b/frontend/src/views/Pages/Login.vue @@ -108,6 +108,8 @@ export default { this.$toasted.global.error(this.$t('error.no-account')) if (error.message.includes('User email not validated')) { this.$router.push('/thx/login') + } else if (error.message.includes('User has no password set yet')) { + this.$router.push('/reset/login') } loader.hide() })