system-phone 3.1.79 → 3.1.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-phone",
3
- "version": "3.1.79",
3
+ "version": "3.1.81",
4
4
  "description": "手机模块 前端组件",
5
5
  "author": "何宁社 <524395609@qq.com>",
6
6
  "license": "ISC",
@@ -162,7 +162,8 @@ export default {
162
162
  if (this.weakPassword) {
163
163
  const pwdResult = validateStrongPasswordPhone(this.model.password)
164
164
  if (!pwdResult.isValid) {
165
- this.$showMessage('密码过于简单,' + (pwdResult.errors[0] || '请按照要求修改密码!!!'))
165
+ this.$showMessage('密码过于简单,' + (pwdResult.errors[0] || '请按照要求修改密码!!!'))
166
+ return
166
167
  }
167
168
  }
168
169
  // 检验原始密码是否符合 并修改密码
@@ -1,5 +1,5 @@
1
1
  const REG_STRONG_PWD =
2
- /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*(),.?":{}|<>~`+=_\\-])[A-Za-z\d!@#$%^&*(),.?":{}|<>~`+=_\\-]{8,}$/;
2
+ /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?])(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]{8,16}$/;
3
3
 
4
4
  // 常见密码列表(可以根据需要扩展)
5
5
  const COMMON_PASSWORDS = [
@@ -125,7 +125,7 @@ export const validateStrongPasswordPhone = (password) => {
125
125
  if (!REG_STRONG_PWD.test(password)) {
126
126
  result.isValid = false;
127
127
  result.errors.push(
128
- "密码必须包含至少8个字符,包括大写字母、小写字母、数字和特殊字符"
128
+ "密码长度必须为8-16位,且需同时包含大写字母、小写字母、数字和特殊字符"
129
129
  );
130
130
  return result;
131
131
  }