update verification code prompt (#2797)

Co-authored-by: lawyzheng <lawyzheng1106@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-06-26 18:52:24 +09:00
committed by GitHub
parent 980f815180
commit ce9e0bf1cc
3 changed files with 6 additions and 2 deletions

View File

@@ -2854,8 +2854,10 @@ class ForgeAgent:
json_response: dict[str, Any],
) -> dict[str, Any]:
place_to_enter_verification_code = json_response.get("place_to_enter_verification_code")
should_enter_verification_code = json_response.get("should_enter_verification_code")
if (
place_to_enter_verification_code
and should_enter_verification_code
and (task.totp_verification_url or task.totp_identifier)
and task.organization_id
):