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
84214a24
Commit
84214a24
authored
Jan 06, 2020
by
Priyanka Upadhye
Browse files
reset password bug fix
parent
07e4cef8
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/app/auth/reset-password/reset-password.page.html
View file @
84214a24
<ion-header>
<ion-toolbar>
<ion-title>
Reset Password
</ion-title>
<ion-toolbar
color=
"awPrimary"
>
<ion-buttons
slot=
"start"
>
<ion-menu-button></ion-menu-button>
</ion-buttons>
<ion-title
slot=
"start"
>
Change Password
</ion-title>
</ion-toolbar>
</ion-header>
...
...
src/app/auth/reset-password/reset-password.page.ts
View file @
84214a24
...
...
@@ -31,7 +31,9 @@ export class ResetPasswordPage implements OnInit {
this
.
router
.
navigateByUrl
(
'
/login
'
);
}
resetPassword
(){
if
(
this
.
confirmPassword
!=
this
.
newPassword
)
if
(
this
.
oldPassword
==
""
||
this
.
confirmPassword
==
""
||
this
.
newPassword
==
""
)
this
.
toastService
.
showToast
(
"
All Feilds are mandatory
"
);
else
if
(
this
.
confirmPassword
!=
this
.
newPassword
)
this
.
toastService
.
showToast
(
"
Please Confirm Password Again
"
);
else
{
this
.
storage
.
get
(
'
token
'
).
then
((
token
)
=>
{
...
...
src/app/reset-password/reset-password.page.html
deleted
100644 → 0
View file @
07e4cef8
<ion-header>
<ion-toolbar>
<ion-title>
Reset Password
</ion-title>
</ion-toolbar>
</ion-header>
<ion-content>
<form>
<ion-grid>
<ion-row
justify-content-center
>
<ion-col
align-self-center
size-md=
"6"
size-lg=
"5"
size-xs=
"12"
>
<div
padding
>
<img
src=
"../../../assets/images/bike2gologo.png"
>
</div>
<div
class=
"ion-text"
>
<h3>
Reset Password
</h3>
</div>
<ion-item
><ion-input
type=
"text"
disabled=
"true"
placeholder=
"Bob@mail.com"
></ion-input></ion-item>
<ion-item
><ion-input
type=
"password"
placeholder=
"Old Password"
></ion-input></ion-item>
<ion-item
><ion-input
type=
"password"
placeholder=
"New Password"
></ion-input></ion-item>
<ion-item
><ion-input
type=
"password"
placeholder=
"Confirm Password"
></ion-input></ion-item>
<div
padding
>
<ion-button
size=
"large"
expand=
"block"
(click)=
"resetPassword()"
>
Reset Password
</ion-button>
</div>
<div
padding
>
<ion-button
size=
"large"
expand=
"block"
(click)=
"login()"
>
Login
</ion-button>
</div>
</ion-col>
</ion-row>
</ion-grid>
</form>
</ion-content>
\ No newline at end of file
src/app/reset-password/reset-password.page.ts
deleted
100644 → 0
View file @
07e4cef8
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
@
Component
({
selector
:
'
app-reset-password
'
,
templateUrl
:
'
./reset-password.page.html
'
,
styleUrls
:
[
'
./reset-password.page.scss
'
],
})
export
class
ResetPasswordPage
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
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