|
|
|
|
@ -384,55 +384,34 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getMobileInfo(request) {
|
|
|
|
|
GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
this
|
|
|
|
|
.authService
|
|
|
|
|
.getLoginInfo(request)
|
|
|
|
|
.then((result) => {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context),
|
|
|
|
|
if (result['SMSLoginRequired'] == false)
|
|
|
|
|
{
|
|
|
|
|
this.loginTokenID = result.logInTokenID,
|
|
|
|
|
this.patientOutSA = result.patientOutSA,
|
|
|
|
|
// sms for register the biometric
|
|
|
|
|
if (result.isSMSSent)
|
|
|
|
|
{
|
|
|
|
|
this.onlySMSBox = false,
|
|
|
|
|
//this.button();
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{checkActivationCode()}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (result['IsAuthenticated'] == true)
|
|
|
|
|
{
|
|
|
|
|
setState(() {
|
|
|
|
|
isMoreOption = true;
|
|
|
|
|
this.onlySMSBox = true;
|
|
|
|
|
// this.fingrePrintBefore = true;
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
//sharedPref.setBool(ONLY_SMS, true),
|
|
|
|
|
// this.cs.sharedService.setSharedData(true, AuthenticationService.ONLY_SMS);
|
|
|
|
|
//this.cs.sharedService.setSharedData(this.selectedOption, AuthenticationService.FINGUREPRINT_BEFORE);
|
|
|
|
|
// this.cs.confirmLogin();
|
|
|
|
|
//this.button();
|
|
|
|
|
}
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// // this.cs.presentAlert(result.ErrorEndUserMessage);
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catchError((err) {
|
|
|
|
|
// GifLoaderDialogUtils.showMyDialog(context);
|
|
|
|
|
this.authService.getLoginInfo(request).then((result) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
if (result['SMSLoginRequired'] == false) {
|
|
|
|
|
this.loginTokenID = result.logInTokenID;
|
|
|
|
|
this.patientOutSA = result.patientOutSA;
|
|
|
|
|
// sms for register the biometric
|
|
|
|
|
if (result.isSMSSent) {
|
|
|
|
|
this.onlySMSBox = false;
|
|
|
|
|
//this.button();
|
|
|
|
|
} else {
|
|
|
|
|
checkActivationCode();
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
if (result['IsAuthenticated'] == true) {
|
|
|
|
|
setState(() {
|
|
|
|
|
isMoreOption = true;
|
|
|
|
|
this.onlySMSBox = true;
|
|
|
|
|
// this.fingrePrintBefore = true;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catchError((err) {
|
|
|
|
|
GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
print(err);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setUser() async {}
|
|
|
|
|
|
|
|
|
|
setDefault() async {
|
|
|
|
|
if (await sharedPref.getObject(IMEI_USER_DATA) != null)
|
|
|
|
|
user = SelectDeviceIMEIRES.fromJson(
|
|
|
|
|
|