From ad0069087ffb8a0ca97ef964c461ef5ca991bd29 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:19:30 +0530 Subject: [PATCH] [auth] Support for importing auth code from steam --- auth/lib/ui/settings/data/import/bitwarden_import.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/auth/lib/ui/settings/data/import/bitwarden_import.dart b/auth/lib/ui/settings/data/import/bitwarden_import.dart index 6ef7822fc6..b95f0c60bb 100644 --- a/auth/lib/ui/settings/data/import/bitwarden_import.dart +++ b/auth/lib/ui/settings/data/import/bitwarden_import.dart @@ -61,8 +61,8 @@ Future _pickBitwardenJsonFile(BuildContext context) async { if (count != null) { await importSuccessDialog(context, count); } - } catch (e,s) { - Logger("BitwardenImport").severe('Failed to import',e,s); + } catch (e, s) { + Logger("BitwardenImport").severe('Failed to import', e, s); await progressDialog.hide(); await showErrorDialog( context, @@ -89,7 +89,6 @@ Future _processBitwardenExportFile( if (totp.contains("otpauth://")) { code = Code.fromOTPAuthUrl(totp); } else if (totp.contains("steam://")) { - // "totp": "steam://AAABBBCCCDDDEEEFFF" var secret = totp.split("steam://")[1]; code = Code.fromAccountAndSecret( Type.steam,