|
|
|
|
@ -29,7 +29,7 @@ class ConfirmLogin extends StatefulWidget {
|
|
|
|
|
|
|
|
|
|
class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
final LocalAuthentication auth = LocalAuthentication();
|
|
|
|
|
dynamic _availableBiometrics;
|
|
|
|
|
var _availableBiometrics;
|
|
|
|
|
var sharedPref = new AppSharedPreferences();
|
|
|
|
|
bool authenticated;
|
|
|
|
|
final authService = new AuthProvider();
|
|
|
|
|
@ -271,7 +271,8 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
if (type == 2 || type == 3) {
|
|
|
|
|
fingrePrintBefore = type;
|
|
|
|
|
}
|
|
|
|
|
this.selectedOption = user.logInType == 3 || user.logInType == 2
|
|
|
|
|
this.selectedOption =
|
|
|
|
|
(user != null && (user.logInType == 3 || user.logInType == 2))
|
|
|
|
|
? user.logInType
|
|
|
|
|
: fingrePrintBefore != null ? fingrePrintBefore : type;
|
|
|
|
|
|
|
|
|
|
@ -411,6 +412,7 @@ class _ConfirmLogin extends State<ConfirmLogin> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setUser() async {
|
|
|
|
|
if (await sharedPref.getObject(IMEI_USER_DATA) != null)
|
|
|
|
|
user = SelectDeviceIMEIRES.fromJson(
|
|
|
|
|
await sharedPref.getObject(IMEI_USER_DATA));
|
|
|
|
|
}
|
|
|
|
|
|