Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
3125ccae
Commit
3125ccae
authored
Aug 24, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
reset apdet See merge request
!166
parents
625cf9e2
cdadc023
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ResetPassword.js
src/container/ResetPassword.js
+4
-4
No files found.
src/container/ResetPassword.js
View file @
3125ccae
...
@@ -20,8 +20,8 @@ class ResetPassword extends Component {
...
@@ -20,8 +20,8 @@ class ResetPassword extends Component {
showPass2
:
false
,
showPass2
:
false
,
errorPassword
:
false
,
errorPassword
:
false
,
errorConfirmPassword
:
false
,
errorConfirmPassword
:
false
,
msgPassword
:
'
Password minimum 8 charact
ers!.'
,
msgPassword
:
'
Consists of 8 characters with a combination of numb
ers!.'
,
msgConfirmPassword
:
'
Terdiri 8 karakter dengan kombinasi angka
.'
,
msgConfirmPassword
:
'
Consists of 8 characters with a combination of numbers!
.'
,
userId
:
0
,
userId
:
0
,
alert
:
false
,
alert
:
false
,
tipeAlert
:
''
,
tipeAlert
:
''
,
...
@@ -71,7 +71,7 @@ class ResetPassword extends Component {
...
@@ -71,7 +71,7 @@ class ResetPassword extends Component {
}
else
if
(
this
.
isEmail
(
this
.
state
.
password
))
{
}
else
if
(
this
.
isEmail
(
this
.
state
.
password
))
{
this
.
setState
({
errorPassword
:
true
,
msgPassword
:
'Password format should not use email!'
})
this
.
setState
({
errorPassword
:
true
,
msgPassword
:
'Password format should not use email!'
})
}
else
if
(
!
this
.
isRegex
(
this
.
state
.
password
))
{
}
else
if
(
!
this
.
isRegex
(
this
.
state
.
password
))
{
this
.
setState
({
errorPassword
:
true
,
msgPassword
:
'
The p
assword must be a combination of characters, letters and numbers!'
})
this
.
setState
({
errorPassword
:
true
,
msgPassword
:
'
P
assword must be a combination of characters, letters and numbers!'
})
}
else
if
(
this
.
state
.
confirmPassword
.
trim
()
==
""
)
{
}
else
if
(
this
.
state
.
confirmPassword
.
trim
()
==
""
)
{
this
.
setState
({
errorConfirmPassword
:
true
,
msgConfirmPassword
:
'Confirm password cannot be empty!'
})
this
.
setState
({
errorConfirmPassword
:
true
,
msgConfirmPassword
:
'Confirm password cannot be empty!'
})
}
else
if
(
this
.
state
.
confirmPassword
.
length
<
8
)
{
}
else
if
(
this
.
state
.
confirmPassword
.
length
<
8
)
{
...
@@ -81,7 +81,7 @@ class ResetPassword extends Component {
...
@@ -81,7 +81,7 @@ class ResetPassword extends Component {
}
else
if
(
!
this
.
isRegex
(
this
.
state
.
confirmPassword
))
{
}
else
if
(
!
this
.
isRegex
(
this
.
state
.
confirmPassword
))
{
this
.
setState
({
errorConfirmPassword
:
true
,
msgConfirmPassword
:
'Password confirmation must be a combination of characters, letters and numbers!'
})
this
.
setState
({
errorConfirmPassword
:
true
,
msgConfirmPassword
:
'Password confirmation must be a combination of characters, letters and numbers!'
})
}
else
if
(
this
.
state
.
password
!==
this
.
state
.
confirmPassword
)
{
}
else
if
(
this
.
state
.
password
!==
this
.
state
.
confirmPassword
)
{
this
.
setState
({
errorConfirmPassword
:
true
,
msgConfirmPassword
:
'
The c
onfirmation password must match the password!'
})
this
.
setState
({
errorConfirmPassword
:
true
,
msgConfirmPassword
:
'
C
onfirmation password must match the password!'
})
}
else
{
}
else
{
this
.
confirmPassword
()
this
.
confirmPassword
()
}
}
...
...
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