Skip to content

Commit

Permalink
[auth] Support for importing auth code from steam
Browse files Browse the repository at this point in the history
  • Loading branch information
ua741 committed Jun 3, 2024
1 parent 741018b commit ad00690
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions auth/lib/ui/settings/data/import/bitwarden_import.dart
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ Future<void> _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,
Expand All @@ -89,7 +89,6 @@ Future<int?> _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,
Expand Down

0 comments on commit ad00690

Please sign in to comment.