diff --git a/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue b/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue index 6b899f6400..0da1eddb8c 100644 --- a/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue +++ b/core/core-frontend/src/views/system/modify-pwd/UpdatePwd.vue @@ -22,7 +22,7 @@ const validatePwd = (_: any, value: any, callback: any) => { callback(new Error(t('system.be_the_same'))) } const pattern = - /^.*(?=.{8,20})(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/])[a-zA-Z0-9~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/]*$/ + /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/])[a-zA-Z0-9~!@#$%^&*()_+\-\={}|":<>?`[\];',.\/]{8,20}$/ const regep = new RegExp(pattern) if (!regep.test(value)) { const msg = t('user.pwd_pattern_error')