diff --git a/frontend/components/Domain/User/UserPasswordStrength.vue b/frontend/components/Domain/User/UserPasswordStrength.vue new file mode 100644 index 0000000000..2ef5a14097 --- /dev/null +++ b/frontend/components/Domain/User/UserPasswordStrength.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/frontend/components/global/AutoForm.vue b/frontend/components/global/AutoForm.vue index 83a2880543..3b9059ffbf 100644 --- a/frontend/components/global/AutoForm.vue +++ b/frontend/components/global/AutoForm.vue @@ -187,9 +187,16 @@ export default defineComponent({ const list = [] as ((v: string) => boolean | string)[]; keys.forEach((key) => { - if (key in validators) { - // @ts-ignore TODO: fix this - list.push(validators[key]); + const split = key.split(":"); + const validatorKey = split[0] as ValidatorKey; + if (validatorKey in validators) { + if (split.length === 1) { + // @ts-ignore- validators[validatorKey] is a function + list.push(validators[validatorKey]); + } else { + // @ts-ignore - validators[validatorKey] is a function + list.push(validators[validatorKey](split[1])); + } } }); return list; diff --git a/frontend/components/global/ToggleState.vue b/frontend/components/global/ToggleState.vue index 90f06a82ab..36321c4331 100644 --- a/frontend/components/global/ToggleState.vue +++ b/frontend/components/global/ToggleState.vue @@ -6,8 +6,7 @@