Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[auth] Handle invalid export of Google Auth codes

Neeraj Guptad08bb5ea112d
diff --git a/auth/lib/models/code.dart b/auth/lib/models/code.dart
index 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) {