From d0ec656f091df3b46f071b1649eb278d4e913e7b Mon Sep 17 00:00:00 2001 From: Spitap Date: Thu, 9 Feb 2023 10:52:25 +0100 Subject: [PATCH] fixed typo --- frontend/src/views/user/PasswordRecoveryChangeForm.vue | 4 +--- frontend/src/views/user/PasswordRecoveryForm.vue | 2 +- frontend/src/views/user/PasswordRecoverySmsTotpForm.vue | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/views/user/PasswordRecoveryChangeForm.vue b/frontend/src/views/user/PasswordRecoveryChangeForm.vue index 2204bca68..a50b26505 100644 --- a/frontend/src/views/user/PasswordRecoveryChangeForm.vue +++ b/frontend/src/views/user/PasswordRecoveryChangeForm.vue @@ -119,9 +119,7 @@ export default { message += this.$gettext(element) + '
' }) } else if (err.response.status === 429) { - this.$refs.observer.setErrors({ - password: this.$gettext('Too many unsuccessful attempts, please try later.') - }) + message = this.$gettext('Too many unsuccessful attempts, please try later.') } this.password_validation_error = message }) diff --git a/frontend/src/views/user/PasswordRecoveryForm.vue b/frontend/src/views/user/PasswordRecoveryForm.vue index d29c47490..e59b05099 100644 --- a/frontend/src/views/user/PasswordRecoveryForm.vue +++ b/frontend/src/views/user/PasswordRecoveryForm.vue @@ -112,7 +112,7 @@ export default { this.showDialog('Error', err.response.data.reason, true) } else if (err.response.status === 429) { this.$refs.observer.setErrors({ - password: this.$gettext('Too many unsuccessful attempts, please try later.') + email: this.$gettext('Too many unsuccessful attempts, please try later.') }) } }) diff --git a/frontend/src/views/user/PasswordRecoverySmsTotpForm.vue b/frontend/src/views/user/PasswordRecoverySmsTotpForm.vue index 616f0b642..163632f47 100644 --- a/frontend/src/views/user/PasswordRecoverySmsTotpForm.vue +++ b/frontend/src/views/user/PasswordRecoverySmsTotpForm.vue @@ -82,7 +82,7 @@ export default { this.loading = false if (resp.status === 200) { this.$refs.observer.setErrors({ - password_confirmed: this.$gettext('TOTP resent.') + sms_totp: this.$gettext('TOTP resent.') }) } }).catch(err => { @@ -91,7 +91,7 @@ export default { this.showErrorDialog(this.$t('User seems wrong, return to login or restart reset the process?')) } else if (err.response.status === 429) { this.$refs.observer.setErrors({ - password: this.$gettext('Too many unsuccessful attempts, please try later.') + sms_totp: this.$gettext('Too many unsuccessful attempts, please try later.') }) } })