π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Fix import
Neeraj Guptad2b16bd84bab
diff --git a/auth/lib/ui/settings/data/import/google_auth_import.dart b/auth/lib/ui/settings/data/import/google_auth_import.dartindex c14752fa47..8c62962fb0 100644--- a/auth/lib/ui/settings/data/import/google_auth_import.dart+++ b/auth/lib/ui/settings/data/import/google_auth_import.dart@@ -118,10 +118,10 @@ List<Code> parseGoogleAuth(String qrCodeData) {if (otpParameter.type == MigrationPayload_OtpType.OTP_TYPE_TOTP ||otpParameter.type == MigrationPayload_OtpType.OTP_TYPE_UNSPECIFIED) {otpUrl =- 'otpauth://totp/$issuer:$account?secret=$secret&issuer=$issuer&algorithm=$algorithm&digits=$digits&period=$timer';+ 'otpauth://totp/$issuer:$account?secret=$secret&issuer=$issuer&algorithm=${algorithm.name}&digits=$digits&period=$timer';} else if (otpParameter.type == MigrationPayload_OtpType.OTP_TYPE_HOTP) {otpUrl =- 'otpauth://hotp/$issuer:$account?secret=$secret&issuer=$issuer&algorithm=$algorithm&digits=$digits&counter=$counter';+ 'otpauth://hotp/$issuer:$account?secret=$secret&issuer=$issuer&algorithm=${algorithm.name}&digits=$digits&counter=$counter';} else {throw Exception('Invalid OTP type');}