diff --git a/src/views/user/Register.vue b/src/views/user/Register.vue index a3a74da7..dbe5d482 100644 --- a/src/views/user/Register.vue +++ b/src/views/user/Register.vue @@ -53,33 +53,20 @@ name="password" :placeholder="$t('user.auth.passwordPlaceholder')" required - type="password" + :type="passwordFieldType" autocomplete="new-password" v-model="credentials.password" @keyup.enter="submit" @focusout="validatePassword" /> + + +

{{ $t('user.auth.passwordRequired') }}

-
- -
- -
-
@@ -157,6 +144,13 @@ const everythingValid = computed(() => { passwordValid.value }) +const passwordFieldType = ref('password') +const togglePasswordFieldType = () => { + passwordFieldType.value = passwordFieldType.value === 'password' + ? 'text' + : 'password' +} + async function submit() { errorMessage.value = '' @@ -171,3 +165,12 @@ async function submit() { } } + +