Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
h5
/
account
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 03a854f8
authored
Oct 16, 2024
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调整密码规则
1 parent
2acc913f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
html/employee/add.html
html/employee/add.html
View file @
03a854f
...
...
@@ -167,7 +167,7 @@
maxlength=
"20"
required
lay-verify=
"required|merchantLoginPassword"
placeholder=
"
必须包含字母、数字、下划线
、特殊符号中3种或以上"
placeholder=
"
8-20位,必须包含大写字母、小写字母、数字
、特殊符号中3种或以上"
autocomplete=
"off"
class=
"layui-input"
/>
...
...
@@ -564,8 +564,8 @@
return
'登录密码请填入8-20位字符'
}
// if (!/^(?=.*\d)(?=.*[a-zA-Z])[\s\S]{6,20}$/.test(value)) {
if
(
!
/^
(?
=(?:
.*
[
A-Za-z
])(?!
.*
[
A-Za-z
]
.*
[
A-Za-z
]))
.*
(?=(?:
.*
\d)(?!
.*
\d
.*
\d))
.*
(?=(?:
.*
[
_
\W
_
])
.*
(?!
.*
[
_
\W
_
]
.*
[
_
\W
_
]))
.
{8,20}
$/
.
test
(
value
))
{
return
'请输入密码(8-20位,必须包含
字母、数字、下划线
、特殊符号中3种或以上)'
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种或以上)'
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment