Commit cb1b5a1b by 前端

Merge branch 'SAAS+V4.46.0' into 'master'

上线合并

See merge request !69
2 parents 03ea526a 15f0bf29
...@@ -166,8 +166,9 @@ ...@@ -166,8 +166,9 @@
id="password" id="password"
maxlength="20" maxlength="20"
required required
onkeyup="this.value=this.value.replace(/[, ]/g,'')"
lay-verify="required|merchantLoginPassword" lay-verify="required|merchantLoginPassword"
placeholder="请输入密码(必须包含6-20个字母+数字)" placeholder="请输入登录密码"
autocomplete="off" autocomplete="off"
class="layui-input" class="layui-input"
/> />
...@@ -560,11 +561,12 @@ ...@@ -560,11 +561,12 @@
form.verify({ form.verify({
merchantLoginPassword: function (value) { merchantLoginPassword: function (value) {
if (value) { if (value) {
if (value.length < 6 || value.length > 20) { if (value.length < 8 || value.length > 20) {
return '登录密码请填入6-20位字符' return '登录密码请填入8-20位字符'
} }
if (!/^(?=.*\d)(?=.*[a-zA-Z])[\s\S]{6,20}$/.test(value)) { // if (!/^(?=.*\d)(?=.*[a-zA-Z])[\s\S]{6,20}$/.test(value)) {
return '您输入的密码格式不正确,必须同时包含字母、数字。' if (!/^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9\W_]{8,20}$/.test(value)) {
return '请输入密码(8-20位,必须包含大写字母、小写字母、数字、特殊符号中3种或以上)'
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!