diff --git a/webapp/components/PasswordReset/VerifyCode.vue b/webapp/components/PasswordReset/VerifyCode.vue index a69732b4c..e452d64e8 100644 --- a/webapp/components/PasswordReset/VerifyCode.vue +++ b/webapp/components/PasswordReset/VerifyCode.vue @@ -64,8 +64,20 @@ - - {{ changePasswordResultMessage }} + + @@ -132,12 +144,6 @@ export default { changePasswordResult: null, } }, - computed: { - changePasswordResultMessage() { - if (!this.changePasswordResult) return '' - return this.$t(`verify-code.form.change-password.${this.changePasswordResult}`) - }, - }, methods: { async handleInput() { this.disabled = true @@ -161,9 +167,8 @@ export default { const { data: { resetPassword }, } = await this.$apollo.mutate({ mutation, variables }) - const changePasswordResult = resetPassword ? 'success' : 'error' - this.changePasswordResult = changePasswordResult - this.$emit('change-password-result', changePasswordResult) + this.changePasswordResult = resetPassword ? 'success' : 'error' + this.$emit('change-password-result', this.changePasswordResult) this.verification.formData = { code: '', email: '', diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 70762c85e..0970877d4 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -29,7 +29,8 @@ "next": "Weiter", "change-password":{ "success": "Änderung des Passworts war erfolgreich", - "error": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?" + "error": "Passwort Änderung fehlgeschlagen. Möglicherweise falscher Sicherheitscode?", + "help": "Falls Probleme auftreten, schreib uns gerne eine Mail an:" } } }, diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 15743d571..41a806a7b 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -29,7 +29,8 @@ "next": "Continue", "change-password": { "success": "Changing your password was successful", - "error": "Changing your password failed. Maybe the security code was not correct?" + "error": "Changing your password failed. Maybe the security code was not correct?", + "help": "In case of problems, feel free to ask for help by sending us a mail to:" } } },