Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/autoteam/codex_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -1528,6 +1528,8 @@ def _advance(self, attempts=12):
if step == "password_required":
if self._switch_password_to_otp():
continue
if self._auto_fill_password():
continue
return {
"step": "unsupported_password",
"detail": "主号 Codex 当前停留在密码页,且未找到一次性验证码入口",
Expand Down Expand Up @@ -1618,12 +1620,14 @@ def stop(self):

class MainCodexLoginFlow(SessionCodexAuthFlow):
def __init__(self):
from autoteam.admin_state import get_admin_password

super().__init__(
email=get_admin_email(),
session_token=get_admin_session_token(),
account_id=get_chatgpt_account_id(),
workspace_name=get_chatgpt_workspace_name(),
password="",
password=get_admin_password(),
password_callback=None,
auth_file_callback=save_main_auth_file,
)
Expand Down
Loading