[mob][auth] Removed dialog box on auto-logout

This commit is contained in:
Aman Raj Singh Mourya
2024-07-14 22:58:17 +05:30
parent 9292dc6d04
commit 147be37fdb
2 changed files with 1 additions and 6 deletions

View File

@@ -141,6 +141,7 @@ class Configuration {
iOptions: _secureStorageOptionsIOS,
);
}
await LockScreenSettings.instance.removePinAndPassword();
await AuthenticatorDB.instance.clearTable();
_key = null;
_cachedToken = null;

View File

@@ -301,12 +301,6 @@ class _LockScreenState extends State<LockScreen> with WidgetsBindingObserver {
Future<void> _autoLogoutOnMaxInvalidAttempts() async {
_logger.info("Auto logout on max invalid attempts");
await showErrorDialog(
context,
"Too many incorrect attempts",
"Please login again",
isDismissable: false,
);
Navigator.of(context, rootNavigator: true).pop('dialog');
Navigator.of(context).popUntil((route) => route.isFirst);
final dialog = createProgressDialog(context, "Logging out ...");