mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 15:30:40 +00:00
[auth] Support for importing auth code from steam
This commit is contained in:
parent
741018b802
commit
ad0069087f
@ -61,8 +61,8 @@ Future<void> _pickBitwardenJsonFile(BuildContext context) async {
|
|||||||
if (count != null) {
|
if (count != null) {
|
||||||
await importSuccessDialog(context, count);
|
await importSuccessDialog(context, count);
|
||||||
}
|
}
|
||||||
} catch (e,s) {
|
} catch (e, s) {
|
||||||
Logger("BitwardenImport").severe('Failed to import',e,s);
|
Logger("BitwardenImport").severe('Failed to import', e, s);
|
||||||
await progressDialog.hide();
|
await progressDialog.hide();
|
||||||
await showErrorDialog(
|
await showErrorDialog(
|
||||||
context,
|
context,
|
||||||
@ -89,7 +89,6 @@ Future<int?> _processBitwardenExportFile(
|
|||||||
if (totp.contains("otpauth://")) {
|
if (totp.contains("otpauth://")) {
|
||||||
code = Code.fromOTPAuthUrl(totp);
|
code = Code.fromOTPAuthUrl(totp);
|
||||||
} else if (totp.contains("steam://")) {
|
} else if (totp.contains("steam://")) {
|
||||||
// "totp": "steam://AAABBBCCCDDDEEEFFF"
|
|
||||||
var secret = totp.split("steam://")[1];
|
var secret = totp.split("steam://")[1];
|
||||||
code = Code.fromAccountAndSecret(
|
code = Code.fromAccountAndSecret(
|
||||||
Type.steam,
|
Type.steam,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user