reset_pin
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user