修改注册密码校验问题

master
JayChou 2 weeks ago
parent 53eca960f7
commit 1ab3a196de
  1. 2
      jeecgboot-vue3/src/views/system/loginmini/MiniRegister4shenbaoren.vue

@ -246,7 +246,7 @@
return; return;
} }
// 8 // 8
const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#$%^&+=!])(?=.{8,})$/; const passwordRegex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?])[A-Za-z\d!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]{8,}$/;
if (!passwordRegex.test(formData.password)) { if (!passwordRegex.test(formData.password)) {
createMessage.warn(t('sys.login.passwordPlaceholderNotReg')); createMessage.warn(t('sys.login.passwordPlaceholderNotReg'));
return; return;

Loading…
Cancel
Save