- Continue
+ Continue
@@ -157,12 +157,12 @@ export default {
this.mfaRequired = false
await this.$nextTick()
this.focusUsername()
- this.errors.general = 'Login failed'
+ this.errors.general = this.$t('auth.errors.loginFailed')
} else if (newError.statusCode === 429) {
this.loggingIn = false
await this.$nextTick()
this.focusUsername()
- this.errors.general = 'Too many login attempts. Try again later.'
+ this.errors.general = this.$t('auth.errors.tooManyAttempts')
this.tooManyRequests = true
setTimeout(() => {
this.tooManyRequests = false
@@ -186,15 +186,15 @@ export default {
this.errors.password = ''
if (this.input.username === '') {
valid = false
- this.errors.username = 'Required field'
+ this.errors.username = this.$t('auth.errors.requiredField')
}
if (this.passwordRequired && this.input.password === '') {
valid = false
- this.errors.password = 'Required field'
+ this.errors.password = this.$t('auth.errors.requiredField')
}
if (this.input.password.length > 1024) {
valid = false
- this.errors.password = 'Too long'
+ this.errors.password = this.$t('auth.errors.tooLong')
}
if (valid) {
this.loggingIn = true
diff --git a/frontend/src/pages/account/Create.vue b/frontend/src/pages/account/Create.vue
index 8c15b25a12..210a069fbb 100644
--- a/frontend/src/pages/account/Create.vue
+++ b/frontend/src/pages/account/Create.vue
@@ -13,19 +13,19 @@
v-html="settings['branding:account:signUpTopBanner']"
/>
-
+
{{ showErrors.username ? errors.username : '' }}
-
+
{{ showErrors.name ? errors.name : '' }}
-
-
+
+
{{ showErrors.email ? errors.email : '' }}
-
+
{{ showErrors.password ? errors.password : '' }}
-
+
{{ showErrors.repeatPassword ? errors.repeatPassword : '' }}
@@ -40,25 +40,26 @@