From 136837af501dbe00e8f664c2b1a1e7d5715d9677 Mon Sep 17 00:00:00 2001 From: khushal Date: Tue, 3 Dec 2024 08:57:38 +0530 Subject: [PATCH] (20241203) Bug fix -> email id comparison was being done wrongly during oauth callback handling for gmail. --- api/blueprints/mail/oauth_callback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/blueprints/mail/oauth_callback.py b/api/blueprints/mail/oauth_callback.py index 635a5cc..bb58504 100644 --- a/api/blueprints/mail/oauth_callback.py +++ b/api/blueprints/mail/oauth_callback.py @@ -149,7 +149,7 @@ async def handle_gmail_callback(): ) if ( (not placeholder_token) or - placeholder_token["clientUserId"] != str(tokens.email) + placeholder_token["clientUserId"]["email"] != str(tokens.email) ): return await render_template( "/mail/oauth/oauth_failure_v2.html", mail_client = g.mail_client.title(),