From 71870592540a69875f65737fdf230231cce04770 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 16 Nov 2023 10:48:47 -0500 Subject: [PATCH] reset_pin --- src/app/pages/forgot/forgot.page.ts | 7 ++++++- src/app/pages/new-password/new-password.page.ts | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/app/pages/forgot/forgot.page.ts b/src/app/pages/forgot/forgot.page.ts index a8d24f8..9c91116 100644 --- a/src/app/pages/forgot/forgot.page.ts +++ b/src/app/pages/forgot/forgot.page.ts @@ -141,10 +141,15 @@ export class ForgotPage implements OnInit { resetResult.lostpass_id > 0 && resetResult.reset_uid !='' && resetResult.m_uid != '' ) { + + var newPassParam= { + resetResult: resetResult, + reset_pin: this.reset_pin + }; // this.reset_uid = resetResult.reset_uid; // this.m_uid = resetResult.m_uid; // this.password_reset_id = resetResult.password_reset_id; - this.router.navigate(['new-password'],{state:resetResult}); + this.router.navigate(['new-password'],{state:newPassParam}); } else { diff --git a/src/app/pages/new-password/new-password.page.ts b/src/app/pages/new-password/new-password.page.ts index a076884..8c4c99f 100644 --- a/src/app/pages/new-password/new-password.page.ts +++ b/src/app/pages/new-password/new-password.page.ts @@ -14,6 +14,7 @@ export class NewPasswordPage implements OnInit { @ViewChild('new_password') new_password; resetResult;any; + reset_pin:string=''; constructor( private navctr: NavController, private router: Router, @@ -22,7 +23,10 @@ export class NewPasswordPage implements OnInit { private loadingCtrl: LoadingController, private alertController: AlertController ) { - this.resetResult = this.router.getCurrentNavigation().extras.state; + this.resetResult = this.router.getCurrentNavigation().extras.state.resetResult; + this.reset_pin = this.router.getCurrentNavigation().extras.state.reset_pin; + // debugger; + if ( this.resetResult != null && this.resetResult.internal_return == 0 && this.resetResult.lostpass_id > 0 && @@ -51,6 +55,7 @@ export class NewPasswordPage implements OnInit { step: number, m_uid: string, reset_uid: string, + reset_pin: string, sessionid: string, reset_link: string, channel:'MOBILE', @@ -73,6 +78,7 @@ export class NewPasswordPage implements OnInit { step: 300, m_uid: this.resetResult.m_uid, reset_uid: this.resetResult.reset_uid, + reset_pin: this.reset_pin, sessionid: 'DUMMY-CANNOT_BE_EMPTY', reset_link: 'DUMMY-CANNOT_BE_EMPTY', channel:'MOBILE',