From b40401a50f4dcce0f61937f025e17ed076becf8c Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Sat, 4 Apr 2026 18:54:50 +0800 Subject: [PATCH] style(dashboard): format password validation rule --- dashboard/src/layouts/full/vertical-header/VerticalHeader.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue index 02bd90968..2263dd704 100644 --- a/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue +++ b/dashboard/src/layouts/full/vertical-header/VerticalHeader.vue @@ -118,7 +118,9 @@ const releasesHeader = computed(() => [ const formValid = ref(true); const passwordRules = computed(() => [ (v: string) => !!v || t("core.header.accountDialog.validation.passwordRequired"), - (v: string) => v.length >= 12 || t("core.header.accountDialog.validation.passwordMinLength"), + (v: string) => + v.length >= 12 || + t("core.header.accountDialog.validation.passwordMinLength"), (v: string) => /[A-Z]/.test(v) || t("core.header.accountDialog.validation.passwordUppercase"), (v: string) => /[a-z]/.test(v) || t("core.header.accountDialog.validation.passwordLowercase"), (v: string) => /\d/.test(v) || t("core.header.accountDialog.validation.passwordDigit")