Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
minsung
2020-04-24 17:33:49 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c6a7cb8fcf347db5f4e87fab8747bef43f4710bf
c6a7cb8f
1 parent
51dba73b
add password validation
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
front/web/JS/validation.js
front/web/JS/validation.js
View file @
c6a7cb8
...
...
@@ -40,6 +40,7 @@ function checkValidation(self){
}
$
(
document
).
ready
(
function
()
{
$
(
'#eValidation'
).
keyup
(
function
()
{
var
re
=
/^
(([^
<>()[
\]\\
.,;:
\s
@
\"]
+
(\.[^
<>()[
\]\\
.,;:
\s
@
\"]
+
)
*
)
|
(\"
.+
\"))
@
((\[[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\.[
0-9
]{1,3}\])
|
(([
a-zA-Z
\-
0-9
]
+
\.)
+
[
a-zA-Z
]{2,}))
$/
;
...
...
@@ -53,3 +54,12 @@ $('#eValidation').keyup(function () {
}
});
});
$
(
document
).
ready
(
function
()
{
$
(
'#fpassword, #spassword'
).
on
(
'keyup'
,
function
()
{
if
(
$
(
'#fpassword'
).
val
()
==
$
(
'#spassword'
).
val
())
{
$
(
'#message'
).
html
(
'일치'
).
css
(
'color'
,
'green'
);
}
else
$
(
'#message'
).
html
(
'비밀번호가 일치하지 않습니다'
).
css
(
'color'
,
'red'
);
});
});
...
...
Please
register
or
login
to post a comment