Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f56c8ecc
authored
Jul 24, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
1131a069
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
dist/js/person/login.js
dist/js/person/register.js
dist/js/person/login.js
View file @
f56c8ecc
...
...
@@ -121,7 +121,7 @@
}
//密码长度要大于6位,由数字和字母组成
var
reg
=
/^
(?![
0-9
]
+$
)(?![
a-zA-Z
]
+$
)
[
0-9A-Za-z
]{6,}
$/
;
var
reg
=
/^
[
0-9A-Za-z
]{6,}
$/
;
if
(
!
reg
.
test
(
$password
.
val
())
&&
type
===
1
)
{
...
...
dist/js/person/register.js
View file @
f56c8ecc
...
...
@@ -107,13 +107,13 @@
}
//密码长度要大于6位,由数字和字母组成
var
reg
=
/^
(?![
0-9
]
+$
)(?![
a-zA-Z
]
+$
)
[
0-9A-Za-z
]{6,}
$/
;
var
reg
=
/^
[
0-9A-Za-z
]{6,}
$/
;
if
(
!
reg
.
test
(
$password
.
val
()))
{
if
(
!
reg
.
test
(
$password
.
val
())
||
$password
.
length
<
6
)
{
$password
.
parent
().
parent
(
'.input-wrap'
).
addClass
(
'error'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'密码
长度要大于6位,由数字和字母组成
'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'密码
由字母和数字组成,且不能少于6位
'
);
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment