mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
Added a no-email-verify to locale check if the error message contains the message email not verified then throw another message than normal.
This commit is contained in:
parent
4389e47cab
commit
14db7bd058
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user