(20241209) Found one bug in the gmail oauth callback.
This commit is contained in:
@@ -283,14 +283,19 @@ async def mail_auth_callback(
|
|||||||
# ┣┫┏┓┏┓┏┫┃┏┓ ┃ ┏┓┃┃┣┓┏┓┏┃┏┏
|
# ┣┫┏┓┏┓┏┫┃┏┓ ┃ ┏┓┃┃┣┓┏┓┏┃┏┏
|
||||||
# ┛┗┗┻┛┗┗┻┗┗ ┗┛┗┻┗┗┗┛┗┻┗┛┗┛
|
# ┛┗┗┻┛┗┗┻┗┗ ┗┛┗┻┗┗┗┛┗┻┗┛┗┛
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
if mail_client == "gmail": return await handle_gmail_callback()
|
if mail_client == "gmail": return await handle_gmail_callback()
|
||||||
# try:
|
|
||||||
#
|
# If something goes wrong:
|
||||||
# if mail_client == "gmail": return await handle_gmail_callback()
|
except Exception as exception: return await render_template(
|
||||||
#
|
"/mail/oauth/oauth_failure_v2.html",
|
||||||
# except Exception as exception:
|
mail_client = mail_client.title(),
|
||||||
#
|
failure_hint = (
|
||||||
# pass
|
f"An internal server error occurred. "
|
||||||
|
f"Please use log-id '{g.log_id}' to check with the support team."
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
# ┓┏ ┓┓ ┳ ┓• ┓ ┏┓┓•
|
# ┓┏ ┓┓ ┳ ┓• ┓ ┏┓┓•
|
||||||
# ┣┫┏┓┏┓┏┫┃┏┓ ┃┏┓┓┏┏┓┃┓┏┫ ┃ ┃┓┏┓┏┓╋
|
# ┣┫┏┓┏┓┏┫┃┏┓ ┃┏┓┓┏┏┓┃┓┏┫ ┃ ┃┓┏┓┏┓╋
|
||||||
|
|||||||
@@ -152,7 +152,7 @@ class CoreAuthTokenModel(BaseModel):
|
|||||||
|
|
||||||
clientUserId: dict = Field(
|
clientUserId: dict = Field(
|
||||||
description = "how third-party client identifies the same user",
|
description = "how third-party client identifies the same user",
|
||||||
frozen = True
|
frozen = False
|
||||||
)
|
)
|
||||||
|
|
||||||
status: Literal["pending", "active", "disabled"] = Field(
|
status: Literal["pending", "active", "disabled"] = Field(
|
||||||
|
|||||||
Reference in New Issue
Block a user