[mob][auth] Removed dialog box on auto-logout
This commit is contained in:
@@ -141,6 +141,7 @@ class Configuration {
|
||||
iOptions: _secureStorageOptionsIOS,
|
||||
);
|
||||
}
|
||||
await LockScreenSettings.instance.removePinAndPassword();
|
||||
await AuthenticatorDB.instance.clearTable();
|
||||
_key = null;
|
||||
_cachedToken = null;
|
||||
|
||||
@@ -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 ...");
|
||||
|
||||
Reference in New Issue
Block a user