From 09b75d10184f8a576540b57baa0a52ed324ebc1b Mon Sep 17 00:00:00 2001 From: overtrue Date: Thu, 30 Oct 2025 21:59:57 +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 b3f3e48..57be431 100644 --- a/components/user/new-form.vue +++ b/components/user/new-form.vue @@ -192,8 +192,8 @@ const validate = () => { if (!editForm.accessKey.trim()) { errors.accessKey = t('Please enter username') - } else if (!/^.{4,16}$/.test(editForm.accessKey)) { - errors.accessKey = t('username length cannot be less than 4 characters and greater than 16 characters') + } else if (!/^.{3,20}$/.test(editForm.accessKey)) { + errors.accessKey = t('username length cannot be less than 3 characters and greater than 20 characters') } if (!editForm.secretKey.trim()) {