fixed typo

This commit is contained in:
Spitap
2023-02-09 10:52:25 +01:00
parent 2fd15745c9
commit d0ec656f09
3 changed files with 4 additions and 6 deletions
@@ -119,9 +119,7 @@ export default {
message += this.$gettext(element) + '<br>'
})
} 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
})
@@ -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.')
})
}
})
@@ -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.')
})
}
})