fix(auth): don't export display
This commit is contained in:
parent
7628991dad
commit
851c04f714
|
@ -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";
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) return true;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue