Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
404a417c
Commit
404a417c
authored
Dec 04, 2019
by
alif fadila safriyanto
Browse files
1506688765 197
parent
a13a6f7e
Changes
1
Hide whitespace changes
Inline
Side-by-side
assets/js/components/CompanyRegisterModal.jsx
View file @
404a417c
...
...
@@ -78,7 +78,7 @@ export default class CompanyRegisterModal extends React.Component {
this
.
passwordConfirmField
=
e
.
target
;
}
const
validatePassword
=
/
(?=
.*
\d
)(?=
.*
[
a-z
])(?=
.*
[
A-Z
])
.
{8,}
/g
;
const
validatePassword
=
/
(?=
.*
[
0-9
]
)(?=
.*
[
a-z
])(?=
.*
[
A-Z
])
.
{8,}
/g
;
if
(
!
validatePassword
.
test
(
this
.
passwordField
.
value
))
{
this
.
passwordField
.
setCustomValidity
(
'
Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters
'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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