|
|
|
@ -662,49 +662,8 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
|
|
|
|
|
loginWithSMS(type, isActive, authProv) {
|
|
|
|
|
this.sendActivationCode(type, authProv);
|
|
|
|
|
// //if (!el.disabled) {
|
|
|
|
|
// if (this.user != null) {
|
|
|
|
|
// this.checkUserAuthentication(type);
|
|
|
|
|
// } else {
|
|
|
|
|
// // if (this.loginTokenID != null) {
|
|
|
|
|
// this.sendActivationCode(type, authProv);
|
|
|
|
|
// // } else {
|
|
|
|
|
// //this.checkUserAuthentication(type);
|
|
|
|
|
// // }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// checkUserAuthentication(type) {
|
|
|
|
|
// // showLoader(true);
|
|
|
|
|
// // var req = getCommonRequest(type: type);
|
|
|
|
|
// // req.logInTokenID = "";
|
|
|
|
|
|
|
|
|
|
// // var request = CheckPatientAuthenticationReq.fromJson(req.toJson());
|
|
|
|
|
|
|
|
|
|
// // sharedPref.setObject(REGISTER_DATA_FOR_REGISTER, request);
|
|
|
|
|
// // authService
|
|
|
|
|
// // .checkPatientAuthentication(request)
|
|
|
|
|
// // .then((value) => {
|
|
|
|
|
// // GifLoaderDialogUtils.hideDialog(context),
|
|
|
|
|
// // if (value['isSMSSent'])
|
|
|
|
|
// // {
|
|
|
|
|
// // sharedPref.setString(LOGIN_TOKEN_ID, value['LogInTokenID']),
|
|
|
|
|
// // this.loginTokenID = value['LogInTokenID'],
|
|
|
|
|
// // sharedPref.setObject(REGISTER_DATA_FOR_LOGIIN, request),
|
|
|
|
|
// // // Future.delayed(Duration(seconds: 1), () {
|
|
|
|
|
// // this.sendActivationCode(type)
|
|
|
|
|
// // // })
|
|
|
|
|
// // }
|
|
|
|
|
// // else
|
|
|
|
|
// // {
|
|
|
|
|
// // if (value['IsAuthenticated']) {this.checkActivationCode()}
|
|
|
|
|
// // }
|
|
|
|
|
// // })
|
|
|
|
|
// // .catchError((err) {
|
|
|
|
|
// // print(err);
|
|
|
|
|
// // GifLoaderDialogUtils.hideDialog(context);
|
|
|
|
|
// // });
|
|
|
|
|
// }
|
|
|
|
|
Future<void> _getAvailableBiometrics() async {
|
|
|
|
|
var availableBiometrics;
|
|
|
|
|
try {
|
|
|
|
@ -744,7 +703,7 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
this.checkActivationCode(authProv, value: value);
|
|
|
|
|
},
|
|
|
|
|
() => {
|
|
|
|
|
Navigator.pop(context),
|
|
|
|
|
//Navigator.pop(context),
|
|
|
|
|
print('Faild..'),
|
|
|
|
|
},
|
|
|
|
|
).displayDialog(context);
|
|
|
|
@ -765,15 +724,6 @@ class _VerificationMethodsState extends State<VerificationMethods> {
|
|
|
|
|
this.onlySMSBox = true;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// if (authenticated == true) {
|
|
|
|
|
// if (user != null && (user.logInTypeID == 4 || user.logInTypeID == 3)) {
|
|
|
|
|
// //this.checkActivationCode();
|
|
|
|
|
// } else {
|
|
|
|
|
// // var request = this.getCommonRequest(type: type);
|
|
|
|
|
// // this.getMobileInfo(request);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|