Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfireap committed Feb 9, 2023
1 parent 2fd1574 commit d0ec656
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions frontend/src/views/user/PasswordRecoveryChangeForm.vue
Expand Up @@ -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
})
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/user/PasswordRecoveryForm.vue
Expand Up @@ -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.')
})
}
})
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/user/PasswordRecoverySmsTotpForm.vue
Expand Up @@ -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 => {
Expand All @@ -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.')
})
}
})
Expand Down

0 comments on commit d0ec656

Please sign in to comment.