From 0b626fc78194334166bc7ff8a66fa5411f2d5b24 Mon Sep 17 00:00:00 2001
From: Neeraj Gupta <254676+ua741@users.noreply.github.com>
Date: Tue, 4 Jun 2024 12:29:23 +0530
Subject: [PATCH 1/3] Update icon
---
.../custom-icons/icons/mercado_livre.svg | 507 +++++++++++++++++-
1 file changed, 497 insertions(+), 10 deletions(-)
diff --git a/auth/assets/custom-icons/icons/mercado_livre.svg b/auth/assets/custom-icons/icons/mercado_livre.svg
index 8eeb1b94b5..16a3d7f467 100644
--- a/auth/assets/custom-icons/icons/mercado_livre.svg
+++ b/auth/assets/custom-icons/icons/mercado_livre.svg
@@ -1,10 +1,497 @@
-
+
+
+
From 9a921c314a58fdf4643f0b438bc3b6d4fde97931 Mon Sep 17 00:00:00 2001
From: Neeraj Gupta <254676+ua741@users.noreply.github.com>
Date: Tue, 4 Jun 2024 12:29:34 +0530
Subject: [PATCH 2/3] Handle steam code generation
---
auth/lib/utils/totp_util.dart | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/auth/lib/utils/totp_util.dart b/auth/lib/utils/totp_util.dart
index 61c7f20e92..f886215081 100644
--- a/auth/lib/utils/totp_util.dart
+++ b/auth/lib/utils/totp_util.dart
@@ -4,7 +4,7 @@ import 'package:otp/otp.dart' as otp;
import 'package:steam_totp/steam_totp.dart';
String getOTP(Code code) {
- if (code.type == Type.steam) {
+ if (code.type == Type.steam || code.issuer.toLowerCase() == 'steam') {
return _getSteamCode(code);
}
if (code.type == Type.hotp) {
@@ -39,7 +39,7 @@ String _getSteamCode(Code code, [bool isNext = false]) {
}
String getNextTotp(Code code) {
- if (code.type == Type.steam) {
+ if (code.type == Type.steam || code.issuer.toLowerCase() == 'steam') {
return _getSteamCode(code, true);
}
return otp.OTP.generateTOTPCodeString(
From 2d9b95f950e2fac97ab322ce83d42768b617e148 Mon Sep 17 00:00:00 2001
From: Neeraj Gupta <254676+ua741@users.noreply.github.com>
Date: Tue, 4 Jun 2024 12:30:02 +0530
Subject: [PATCH 3/3] [auth] Bump version v3.0.7
---
auth/pubspec.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/auth/pubspec.yaml b/auth/pubspec.yaml
index 5290461594..3d70dbd2aa 100644
--- a/auth/pubspec.yaml
+++ b/auth/pubspec.yaml
@@ -1,6 +1,6 @@
name: ente_auth
description: ente two-factor authenticator
-version: 3.0.6+306
+version: 3.0.7+307
publish_to: none
environment: