ztxkutils 2.10.37 → 2.10.38
Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
export { c as authority } from './authority-e6bde99f.js';
|
2
2
|
export { d as dataModel } from './dataModel-1fbaff40.js';
|
3
3
|
export { t as tools } from './tools-09a4d620.js';
|
4
|
-
export { v as validate } from './validate-
|
4
|
+
export { v as validate } from './validate-e51e4026.js';
|
5
5
|
export { r as request } from './request-8e2b5826.js';
|
6
6
|
export { r as reqUrl } from './reqUrl-787dd9e5.js';
|
7
7
|
import './tslib.es6-35653116.js';
|
@@ -68,7 +68,7 @@ var commonMessage = {
|
|
68
68
|
idCardMessage: '请输入正确的身份证',
|
69
69
|
emailMessage: '请输入正确的邮箱',
|
70
70
|
// passwordMessage: '密码由8-16位的字母+数字,字母+特殊字符,数字+特殊字符组成',
|
71
|
-
passwordMessage: '
|
71
|
+
passwordMessage: '密码必须包含大小写字母、数字、特殊字符且最小长度为8,且不能出现连续数字或字符,不能出现相同字符,且禁止使用用户账号作为密码',
|
72
72
|
spaceMessage: '请勿输入空格',
|
73
73
|
};
|
74
74
|
function validatePassword(password, username) {
|
@@ -77,7 +77,7 @@ function validatePassword(password, username) {
|
|
77
77
|
if (!regex.test(password)) {
|
78
78
|
return {
|
79
79
|
result: false,
|
80
|
-
message: '
|
80
|
+
message: '密码中必须包含大小写字母、数字、特殊字符,且长度必须大于8个字符!',
|
81
81
|
};
|
82
82
|
}
|
83
83
|
// 检查密码中是否有连续的字母或数字
|
package/dist/validate.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export { c as commonMessage, b as validate, a as validatePassword } from './validate-
|
1
|
+
export { c as commonMessage, b as validate, a as validatePassword } from './validate-e51e4026.js';
|