diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json index ca5b20f82..56e759ab1 100644 --- a/frontend/src/locales/de.json +++ b/frontend/src/locales/de.json @@ -46,7 +46,8 @@ "change-password": "Fehler beim Ändern des Passworts", "error": "Fehler", "no-account": "Leider konnten wir keinen Account finden mit diesen Daten!", - "session-expired": "Sitzung abgelaufen!" + "session-expired": "Sitzung abgelaufen!", + "no-email-verify": "Email wurde noch nicht bestätigt, bitte überprüfen Sie ihre Emails und clicken Sie den Registrierungslink!" }, "form": { "amount": "Betrag", diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index d3d5b05ab..c7410633e 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -46,7 +46,8 @@ "change-password": "Error while changing password", "error": "Error", "no-account": "Unfortunately we could not find an account to the given data!", - "session-expired": "The session expired" + "session-expired": "The session expired", + "no-email-verify": "Your email is not validated yet, please check your emails and click on the activation link!" }, "form": { "amount": "Amount", diff --git a/frontend/src/views/Pages/Login.vue b/frontend/src/views/Pages/Login.vue index 0cdbeb942..3f5c840d4 100755 --- a/frontend/src/views/Pages/Login.vue +++ b/frontend/src/views/Pages/Login.vue @@ -102,9 +102,12 @@ export default { this.$router.push('/overview') loader.hide() }) - .catch(() => { + .catch((error) => { loader.hide() - this.$toasted.error(this.$t('error.no-account')) + const toastedError = !error.message.includes('user email not validated') + ? this.$t('error.no-account') + : this.$t('error.no-email-verify') + this.$toasted.error(toastedError) }) }, async onCreated() {