(20250116) Fixed auth-token bug for mail controllers.

This commit is contained in:
2025-01-16 17:08:15 +05:30
parent a5f88f1ff4
commit c78ab00ca7
3 changed files with 18 additions and 15 deletions
@@ -258,8 +258,11 @@ async def mail_auth_callback(
# For failed authorization:
return await render_template(
"/message/mail/oauth/oauth_failure_v2.html",
mail_client = mail_client.title(),
failure_hint = f"Unknown error. Please use log-id '{kwargs.get('log_id')}' to check with the support team."
mail_client = mail_client,
failure_hint = (
f"{client_response.message} "
f"Please use log-id '{kwargs.get('log_id')}' to check with the support team.".strip()
)
)