(20241203) Bug fix -> email id comparison was being done wrongly during oauth callback handling for gmail.

This commit is contained in:
2024-12-03 08:57:38 +05:30
parent bc5ede8f0a
commit 136837af50
+1 -1
View File
@@ -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(),