(20241209) Found one bug in the gmail oauth callback.

This commit is contained in:
2024-12-09 12:51:22 +05:30
parent 741bfd3a98
commit e5e185c272
2 changed files with 14 additions and 9 deletions
+13 -8
View File
@@ -283,14 +283,19 @@ async def mail_auth_callback(
# ┣┫┏┓┏┓┏┫┃┏┓ ┃ ┏┓┃┃┣┓┏┓┏┃┏┏
# ┛┗┗┻┛┗┗┻┗┗ ┗┛┗┻┗┗┗┛┗┻┗┛┗┛
if mail_client == "gmail": return await handle_gmail_callback()
# try:
#
# if mail_client == "gmail": return await handle_gmail_callback()
#
# except Exception as exception:
#
# pass
try:
if mail_client == "gmail": return await handle_gmail_callback()
# If something goes wrong:
except Exception as exception: return await render_template(
"/mail/oauth/oauth_failure_v2.html",
mail_client = mail_client.title(),
failure_hint = (
f"An internal server error occurred. "
f"Please use log-id '{g.log_id}' to check with the support team."
)
)
# ┓┏ ┓┓ ┳ ┓• ┓ ┏┓┓•
# ┣┫┏┓┏┓┏┫┃┏┓ ┃┏┓┓┏┏┓┃┓┏┫ ┃ ┃┓┏┓┏┓╋