Skip to content

Commit b50ac76

Browse files
committed
fix(register): 修复新版本注册流程
1 parent 6a84e32 commit b50ac76

8 files changed

Lines changed: 143 additions & 410 deletions

File tree

src/config/constants.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ class EmailServiceType(str, Enum):
6565
"signup": "https://auth.openai.com/api/accounts/authorize/continue",
6666
"register": "https://auth.openai.com/api/accounts/user/register",
6767
"send_otp": "https://auth.openai.com/api/accounts/email-otp/send",
68+
"passwordless_send_otp": "https://auth.openai.com/api/accounts/passwordless/send-otp",
6869
"validate_otp": "https://auth.openai.com/api/accounts/email-otp/validate",
6970
"create_account": "https://auth.openai.com/api/accounts/create_account",
71+
"add_phone" : "https://auth.openai.com/add-phone",
7072
"select_workspace": "https://auth.openai.com/api/accounts/workspace/select",
7173
"password_verify" : "https://auth.openai.com/api/accounts/password/verify"
7274
}

src/core/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
create_openai_client,
1313
)
1414
from .register import RegistrationEngine, RegistrationResult
15+
from .login import LoginEngine
1516
from .utils import setup_logging, get_data_dir
1617

1718
__all__ = [
@@ -27,6 +28,7 @@
2728
'create_openai_client',
2829
'RegistrationEngine',
2930
'RegistrationResult',
31+
'LoginEngine',
3032
'setup_logging',
3133
'get_data_dir',
3234
]

0 commit comments

Comments
 (0)