Commit 0cb53260 authored by Priyanka Vivekanand Upadhye's avatar Priyanka Vivekanand Upadhye
Browse files

Merge branch '67-deactivate-user-api-integration' into 'master'

Resolve "Deactivate User API integration"

Closes #67

See merge request 92khra1mst/hft_awado_app!57
parents 2416a802 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>
......
......@@ -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) => {
......
<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
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() {
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment