π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(auth): don't export display
Prateek Sunal851c04f7141e
diff --git a/auth/lib/models/code.dart b/auth/lib/models/code.dartindex 6c1d6c53b9..2ee668c631 100644--- a/auth/lib/models/code.dart+++ b/auth/lib/models/code.dart@@ -243,6 +243,10 @@ class Code {throw UnsupportedError("Unsupported format with host ${uri.host}");}+ String get rawDataWithoutDisplay {+ return "otpauth://${type.name}/$issuer:$account?algorithm=SHA1&digits=$digits&issuer=$issuer&period=30&secret=$secret";+ }+@overridebool operator ==(Object other) {if (identical(this, other)) return true;diff --git a/auth/lib/ui/settings/data/export_widget.dart b/auth/lib/ui/settings/data/export_widget.dartindex e7372f604c..fd181c1915 100644--- a/auth/lib/ui/settings/data/export_widget.dart+++ b/auth/lib/ui/settings/data/export_widget.dart@@ -174,7 +174,7 @@ Future<String> _getAuthDataForExport() async {final allCodes = await CodeStore.instance.getAllCodes();String data = "";for (final code in allCodes.codes) {- data += "${code.rawData}\n";+ data += "${code.rawDataWithoutDisplay}\n";}return data;