Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Class Project
Kape
Commits
26246888
Commit
26246888
authored
Dec 04, 2019
by
alif fadila safriyanto
Browse files
Merge branch '1506688765-197' into 'master'
1506688765 197 See merge request
!229
parents
a13a6f7e
404a417c
Pipeline
#26619
passed with stages
in 13 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
assets/js/components/CompanyRegisterModal.jsx
View file @
26246888
...
...
@@ -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
.
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