diff --git a/frontend/src/components/input/Password.vue b/frontend/src/components/input/Password.vue index 8d7b6461d..919b14592 100644 --- a/frontend/src/components/input/Password.vue +++ b/frontend/src/components/input/Password.vue @@ -60,13 +60,13 @@ const password = ref('') const isValid = ref(props.validateInitially === true ? true : '') const validateAfterFirst = ref(false) -watchEffect(() => props.validateInitially && validate()) - const validate = useDebounceFn(() => { const valid = validatePassword(password.value, props.validateMinLength) isValid.value = valid === true ? true : t(valid) }, 100) +watchEffect(() => props.validateInitially && validate()) + function togglePasswordFieldType() { passwordFieldType.value = passwordFieldType.value === 'password' ? 'text'