diff --git a/webapp/components/Registration/RegistrationSlideInvite.vue b/webapp/components/Registration/RegistrationSlideInvite.vue
index 4571510c5..5a3aee777 100644
--- a/webapp/components/Registration/RegistrationSlideInvite.vue
+++ b/webapp/components/Registration/RegistrationSlideInvite.vue
@@ -114,13 +114,20 @@ export default {
},
})
- if (
- this.sliderData.sliders[this.sliderIndex].data.response &&
- this.sliderData.sliders[this.sliderIndex].data.response.isValidInviteCode
- ) {
- this.$toast.success(
- this.$t('components.registration.invite-code.form.success', { inviteCode }),
- )
+ if (this.sliderData.sliders[this.sliderIndex].data.response) {
+ if (this.sliderData.sliders[this.sliderIndex].data.response.isValidInviteCode) {
+ this.$toast.success(
+ this.$t('components.registration.invite-code.form.validations.success', {
+ inviteCode,
+ }),
+ )
+ } else {
+ this.$toast.error(
+ this.$t('components.registration.invite-code.form.validations.error', {
+ inviteCode,
+ }),
+ )
+ }
}
} catch (err) {
this.sliderData.setSliderValuesCallback(false, {
diff --git a/webapp/components/Registration/RegistrationSlideNonce.vue b/webapp/components/Registration/RegistrationSlideNonce.vue
index f04552a25..40ccd10ad 100644
--- a/webapp/components/Registration/RegistrationSlideNonce.vue
+++ b/webapp/components/Registration/RegistrationSlideNonce.vue
@@ -123,13 +123,22 @@ export default {
sliderData: { request: { variables }, response: response.data },
})
- if (
- this.sliderData.sliders[this.sliderIndex].data.response &&
- this.sliderData.sliders[this.sliderIndex].data.response.VerifyNonce
- ) {
- this.$toast.success(
- this.$t('components.registration.email-nonce.form.success', { email, nonce }),
- )
+ if (this.sliderData.sliders[this.sliderIndex].data.response) {
+ if (this.sliderData.sliders[this.sliderIndex].data.response.VerifyNonce) {
+ this.$toast.success(
+ this.$t('components.registration.email-nonce.form.validations.success', {
+ email,
+ nonce,
+ }),
+ )
+ } else {
+ this.$toast.error(
+ this.$t('components.registration.email-nonce.form.validations.error', {
+ email,
+ nonce,
+ }),
+ )
+ }
}
} catch (err) {
this.sliderData.setSliderValuesCallback(false, {
diff --git a/webapp/locales/de.json b/webapp/locales/de.json
index d14b5e7e9..a81764e82 100644
--- a/webapp/locales/de.json
+++ b/webapp/locales/de.json
@@ -168,9 +168,10 @@
"description": "Öffne Dein E-Mail Postfach und gib den Code ein, den wir geschickt haben.",
"next": "Weiter",
"nonce": "E-Mail-Code: 32143",
- "success": "Gültiger Bestätigungs-Code {nonce} für E-Mail {email}!",
"validations": {
- "length": "muss genau 5 Buchstaben lang sein"
+ "error": "Ungültiger Bestätigungs-Code {nonce} für E-Mail {email}!",
+ "length": "muss genau 5 Buchstaben lang sein",
+ "success": "Gültiger Bestätigungs-Code {nonce} für E-Mail {email}!"
}
},
"title": "E-Mail Bestätigung"
@@ -181,9 +182,10 @@
"description": "Gib den Einladungs-Code ein, den du bekommen hast.",
"invite-code": "Einladungs-Code: ACJERB",
"next": "Weiter",
- "success": "Gültiger Einladungs-Code {inviteCode}!",
"validations": {
- "length": "muss genau 6 Buchstaben lang sein"
+ "error": "Ungültiger Einladungs-Code {inviteCode}!",
+ "length": "muss genau 6 Buchstaben lang sein",
+ "success": "Gültiger Einladungs-Code {inviteCode}!"
}
}
},
diff --git a/webapp/locales/en.json b/webapp/locales/en.json
index e037af414..df34e60c3 100644
--- a/webapp/locales/en.json
+++ b/webapp/locales/en.json
@@ -168,9 +168,10 @@
"description": "Open your inbox and enter the code that we've sent to you.",
"next": "Continue",
"nonce": "E-mail code: 32143",
- "success": "Valid verification code {nonce} for e-mail {email}!",
"validations": {
- "length": "must be 5 characters long"
+ "error": "Invalid verification code {nonce} for e-mail {email}!",
+ "length": "must be 5 characters long",
+ "success": "Valid verification code {nonce} for e-mail {email}!"
}
},
"title": "E-Mail Confirmation"
@@ -181,9 +182,10 @@
"description": "Enter the invitation code you received.",
"invite-code": "Invite code: ACJERB",
"next": "Continue",
- "success": "Valid invite code {inviteCode}!",
"validations": {
- "length": "must be 6 characters long"
+ "error": "Invalid invite code {inviteCode}!",
+ "length": "must be 6 characters long",
+ "success": "Valid invite code {inviteCode}!"
}
}
},