(20241203) Bug fix -> email id comparison was being done wrongly during oauth callback handling for gmail.
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user