From ed59ba5992e082d005940a362fd218693094b853 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 10 Nov 2024 18:02:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E6=96=B0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/loginmini/MiniRegister4faren.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue b/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue index cf258ab..41c4d23 100644 --- a/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue +++ b/jeecgboot-vue3/src/views/system/loginmini/MiniRegister4faren.vue @@ -246,7 +246,7 @@ return; } //包含字母(大小写)、数字以及特殊字符,并且有一定的长度要求,至少 8 位 - const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#$%^&+=!])(?=.{8,})$/; + const passwordRegex = /^(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[._~!@#$^&*])[A-Za-z0-9._~!@#$^&*]{8,20}$/; if (!passwordRegex.test(formData.password)) { createMessage.warn(t('sys.login.passwordPlaceholderNotReg')); return;