Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
hdastageeri
hft_awado_app
Commits
a1680e3c
Commit
a1680e3c
authored
Jan 06, 2020
by
Priyanka Upadhye
Browse files
Validation of Password change
parent
ccd07189
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/auth/reset-password/reset-password.page.ts
View file @
a1680e3c
...
...
@@ -33,8 +33,11 @@ export class ResetPasswordPage implements OnInit {
resetPassword
(){
if
(
this
.
oldPassword
==
""
||
this
.
confirmPassword
==
""
||
this
.
newPassword
==
""
)
this
.
toastService
.
showToast
(
"
All Feilds are mandatory
"
);
else
if
(
this
.
newPassword
.
length
<
4
)
this
.
toastService
.
showToast
(
"
Weak Password
"
);
else
if
(
this
.
confirmPassword
!=
this
.
newPassword
)
this
.
toastService
.
showToast
(
"
Please Confirm Password Again
"
);
else
{
this
.
storage
.
get
(
'
token
'
).
then
((
token
)
=>
{
let
url
=
'
http://193.196.52.237:8081/password-reset/
'
...
...
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