[auth] Fix export for imports with invalid algoname

This commit is contained in:
Neeraj Gupta
2025-01-14 10:15:25 +05:30
parent d2b16bd84b
commit 6df88cda36
2 changed files with 4 additions and 2 deletions

View File

@@ -28,7 +28,8 @@ class ViewQrPage extends StatelessWidget {
child: Column(
children: [
QrImageView(
data: code!.rawData,
data: code!.rawData
.replaceAll('algorithm=Algorithm.', 'algorithm='),
eyeStyle: QrEyeStyle(
eyeShape: QrEyeShape.square,
color: Theme.of(context).colorScheme.onSurface,

View File

@@ -189,7 +189,8 @@ Future<String> _getAuthDataForExport() async {
String data = "";
for (final code in allCodes) {
if (code.hasError) continue;
data += "${code.rawData.replaceAll(',', '%2C')}\n";
data +=
"${code.rawData.replaceAll('algorithm=Algorithm.', 'algorithm=').replaceAll(',', '%2C')}\n";
}
return data;