|
|
|
@ -67,8 +67,7 @@ export class SmsdialogPage implements OnInit {
|
|
|
|
ngOnInit() {
|
|
|
|
ngOnInit() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
closeModal()
|
|
|
|
closeModal() {
|
|
|
|
{
|
|
|
|
|
|
|
|
this.modalCtrl.dismiss();
|
|
|
|
this.modalCtrl.dismiss();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -132,8 +131,7 @@ export class SmsdialogPage implements OnInit {
|
|
|
|
return minutesString + ':' + secondsString;
|
|
|
|
return minutesString + ':' + secondsString;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
validate()
|
|
|
|
validate() {
|
|
|
|
{
|
|
|
|
|
|
|
|
this.checkSMSActivationCode(this.smc_code);
|
|
|
|
this.checkSMSActivationCode(this.smc_code);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -155,7 +153,7 @@ export class SmsdialogPage implements OnInit {
|
|
|
|
this.smsservice.validateActivationCode(this.token, smsCode,
|
|
|
|
this.smsservice.validateActivationCode(this.token, smsCode,
|
|
|
|
() => { }, this.ts.trPK('settings', 'incorrect_otp')).subscribe((result: Response) => {
|
|
|
|
() => { }, this.ts.trPK('settings', 'incorrect_otp')).subscribe((result: Response) => {
|
|
|
|
if (this.cs.validResponse(result)) {
|
|
|
|
if (this.cs.validResponse(result)) {
|
|
|
|
this.stopSMSMonitoring();
|
|
|
|
//this.stopSMSMonitoring();
|
|
|
|
this.modalCtrl.dismiss();
|
|
|
|
this.modalCtrl.dismiss();
|
|
|
|
SMSDialogService.modal_success = true;
|
|
|
|
SMSDialogService.modal_success = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -166,8 +164,7 @@ export class SmsdialogPage implements OnInit {
|
|
|
|
this.smsService.stopSMSMonitoring();
|
|
|
|
this.smsService.stopSMSMonitoring();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public ResendOTP()
|
|
|
|
public ResendOTP() {
|
|
|
|
{
|
|
|
|
|
|
|
|
// this.smsservice.sendActivationCode(this.id, this.mobile,
|
|
|
|
// this.smsservice.sendActivationCode(this.id, this.mobile,
|
|
|
|
// this.country_code, () => { },
|
|
|
|
// this.country_code, () => { },
|
|
|
|
// this.ts.trPK('general', 'ok')).subscribe((result: SendValidationResponse) => {
|
|
|
|
// this.ts.trPK('general', 'ok')).subscribe((result: SendValidationResponse) => {
|
|
|
|
|