pass reset
This commit is contained in:
@@ -8,6 +8,7 @@ ion-content {
|
||||
margin-top: 10px;
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
background-size: contain;
|
||||
|
||||
.back {
|
||||
font-size: 25px;
|
||||
|
||||
@@ -18,41 +18,72 @@
|
||||
|
||||
<ion-content>
|
||||
<div class="boxed_contents">
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
<ion-icon aria-hidden="true" name="people" slot="start"></ion-icon>
|
||||
<ion-label>Add Family</ion-label>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-icon aria-hidden="true" name="people" slot="start"></ion-icon>
|
||||
<ion-label>Relatives</ion-label>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-icon aria-hidden="true" name="chatbubbles-outline" slot="start"></ion-icon>
|
||||
<ion-label>Notifications</ion-label>
|
||||
</ion-item>
|
||||
<ion-accordion-group>
|
||||
<ion-accordion value="first">
|
||||
<ion-item slot="header" color="light">
|
||||
<ion-label>Add Family</ion-label>
|
||||
</ion-item>
|
||||
<div class="ion-padding" slot="content">Adding New Member</div>
|
||||
</ion-accordion>
|
||||
<ion-accordion value="second">
|
||||
<ion-item slot="header" color="light">
|
||||
<ion-label>Relatives</ion-label>
|
||||
</ion-item>
|
||||
<div class="ion-padding" slot="content">Relatives list here plus add</div>
|
||||
</ion-accordion>
|
||||
<ion-accordion value="third">
|
||||
<ion-item slot="header" color="light">
|
||||
<ion-label>Family Banner</ion-label>
|
||||
</ion-item>
|
||||
<div class="ion-padding" slot="content">
|
||||
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-icon aria-hidden="true" name="bluetooth" slot="start"></ion-icon>-->
|
||||
<!-- <ion-label>Bluetooth</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-icon aria-hidden="true" name="call" slot="start"></ion-icon>-->
|
||||
<!-- <ion-label>Cellular</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
</ion-list>
|
||||
<ion-card>
|
||||
<img alt="Family" src="{{session_image_server}}/{{curr_session}}/familybanner/{{member_uid}}" />
|
||||
<ion-card-content>
|
||||
Change Banner
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
<ion-card>
|
||||
</div>
|
||||
</ion-accordion>
|
||||
</ion-accordion-group>
|
||||
|
||||
<ion-card-header>
|
||||
<!-- <ion-card-title>Card Title</ion-card-title>-->
|
||||
<ion-card-subtitle>Family Banner</ion-card-subtitle>
|
||||
</ion-card-header>
|
||||
<img alt="Family" src="{{session_image_server}}/{{curr_session}}/familybanner/{{member_uid}}" />
|
||||
<ion-card-content>
|
||||
Change Banner
|
||||
</ion-card-content>
|
||||
</ion-card>
|
||||
|
||||
<!-- <ion-list>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-icon aria-hidden="true" name="people" slot="start"></ion-icon>-->
|
||||
<!-- <ion-label>Add Family</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-icon aria-hidden="true" name="people" slot="start"></ion-icon>-->
|
||||
<!-- <ion-label>Relatives</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
<!-- <ion-item>-->
|
||||
<!-- <ion-icon aria-hidden="true" name="chatbubbles-outline" slot="start"></ion-icon>-->
|
||||
<!-- <ion-label>Notifications</ion-label>-->
|
||||
<!-- </ion-item>-->
|
||||
|
||||
<!-- <!– <ion-item>–>-->
|
||||
<!-- <!– <ion-icon aria-hidden="true" name="bluetooth" slot="start"></ion-icon>–>-->
|
||||
<!-- <!– <ion-label>Bluetooth</ion-label>–>-->
|
||||
<!-- <!– </ion-item>–>-->
|
||||
<!-- <!– <ion-item>–>-->
|
||||
<!-- <!– <ion-icon aria-hidden="true" name="call" slot="start"></ion-icon>–>-->
|
||||
<!-- <!– <ion-label>Cellular</ion-label>–>-->
|
||||
<!-- <!– </ion-item>–>-->
|
||||
<!-- </ion-list>-->
|
||||
|
||||
<!-- <ion-card>-->
|
||||
|
||||
<!-- <ion-card-header>-->
|
||||
<!-- <!– <ion-card-title>Card Title</ion-card-title>–>-->
|
||||
<!-- <ion-card-subtitle>Family Banner</ion-card-subtitle>-->
|
||||
<!-- </ion-card-header>-->
|
||||
<!-- <img alt="Family" src="{{session_image_server}}/{{curr_session}}/familybanner/{{member_uid}}" />-->
|
||||
<!-- <ion-card-content>-->
|
||||
<!-- Change Banner-->
|
||||
<!-- </ion-card-content>-->
|
||||
<!-- </ion-card>-->
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
|
||||
ion-accordion-group{
|
||||
--background-color: aliceblue;
|
||||
}
|
||||
@@ -1,13 +1,5 @@
|
||||
/*
|
||||
Authors : initappz (Rahul Jograna)
|
||||
Website : https://initappz.com/
|
||||
App Name : E-Learning App Template
|
||||
This App Template Source code is licensed as per the
|
||||
terms found in the Website https://initappz.com/license
|
||||
Copyright and Good Faith Purchasers © 2021-present initappz.
|
||||
*/
|
||||
import { Router } from '@angular/router';
|
||||
import { NavController } from '@ionic/angular';
|
||||
import {LoadingController, NavController} from '@ionic/angular';
|
||||
import {Component, OnInit, ViewChild} from '@angular/core';
|
||||
import {WrenchService} from "../../services/wrench.service";
|
||||
import {SessionDataProviderService} from "../../store/session-data-provider.service";
|
||||
@@ -26,7 +18,8 @@ export class NewPasswordPage implements OnInit {
|
||||
private navctr: NavController,
|
||||
private router: Router,
|
||||
private wrenchService: WrenchService,
|
||||
public sessionDataProviderService:SessionDataProviderService
|
||||
public sessionDataProviderService:SessionDataProviderService,
|
||||
private loadingCtrl: LoadingController
|
||||
) {
|
||||
this.resetResult = this.router.getCurrentNavigation().extras.state;
|
||||
if ( this.resetResult != null
|
||||
@@ -64,7 +57,11 @@ export class NewPasswordPage implements OnInit {
|
||||
};
|
||||
completeResetResults:any;
|
||||
|
||||
onCompleteNewReset(){
|
||||
async onCompleteNewReset(){
|
||||
const loading = await this.loadingCtrl.create({
|
||||
message: 'Please wait...',
|
||||
duration: 6000,
|
||||
});
|
||||
|
||||
if (this.new_password.length < 8 || (this.new_password != this.confirm_new_password) ){
|
||||
this.showAlert('Error', 'Enter new password to continue, must be 8 or more alphanumeric');
|
||||
@@ -80,12 +77,14 @@ export class NewPasswordPage implements OnInit {
|
||||
channel:'MOBILE',
|
||||
newpass: this.new_password
|
||||
};
|
||||
loading.present();
|
||||
this.wrenchService.verifyPassReset(this.postData).subscribe(
|
||||
completeResetResults => {
|
||||
this.completeResetResults = completeResetResults;
|
||||
console.log("completeResetResults RETURN->", this.completeResetResults);
|
||||
this.showAlert('Completed', 'Login with new password now');
|
||||
this.router.navigate(['login']);
|
||||
loading.dismiss();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user