From 922ef7ad95109af12e1eabcf1bda3c9b6350092e Mon Sep 17 00:00:00 2001 From: overtrue Date: Thu, 30 Oct 2025 21:32:39 +0800 Subject: [PATCH] fix: resolved #23 --- components/user/new-form.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/user/new-form.vue b/components/user/new-form.vue index da75841..0dc337b 100644 --- a/components/user/new-form.vue +++ b/components/user/new-form.vue @@ -191,13 +191,13 @@ const validate = () => { if (!editForm.accessKey.trim()) { errors.accessKey = t('Please enter username') - } else if (!/^.{8,16}$/.test(editForm.accessKey)) { + } else if (!/^.{6,16}$/.test(editForm.accessKey)) { errors.accessKey = t('username length cannot be less than 8 characters and greater than 16 characters') } if (!editForm.secretKey.trim()) { errors.secretKey = t('Please enter password') - } else if (!/^.{8,16}$/.test(editForm.secretKey)) { + } else if (!/^.{6,16}$/.test(editForm.secretKey)) { errors.secretKey = t('password length cannot be less than 8 characters and greater than 16 characters') }