π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Handle invalid export of Google Auth codes
Neeraj Guptad08bb5ea112d
diff --git a/auth/lib/models/code.dart b/auth/lib/models/code.dartindex 794a21276e..63fd4add6a 100644--- a/auth/lib/models/code.dart+++ b/auth/lib/models/code.dart@@ -256,9 +256,9 @@ class Code {try {final algorithm =uri.queryParameters['algorithm'].toString().toLowerCase();- if (algorithm == "sha256") {+ if (algorithm == "sha256" || "algorithm.sha256" == algorithm) {return Algorithm.sha256;- } else if (algorithm == "sha512") {+ } else if (algorithm == "sha512" || "algorithm.sha512" == algorithm) {return Algorithm.sha512;}} catch (e) {