mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-05-13 09:00:43 +08:00
feat(register): Outlook 邮箱注册跳过发送验证码环节
Outlook 邮箱由 OpenAI 直接发邮件,无需调用 _send_verification_code(),跳过该步骤直接等待收件
This commit is contained in:
@@ -788,11 +788,14 @@ class RegistrationEngine:
|
||||
result.error_message = "注册密码失败"
|
||||
return result
|
||||
|
||||
# 9. 发送验证码
|
||||
self._log("9. 发送验证码...")
|
||||
if not self._send_verification_code():
|
||||
result.error_message = "发送验证码失败"
|
||||
return result
|
||||
# 9. 发送验证码(Outlook 邮箱跳过,由邮箱本身接收)
|
||||
if self.email_service.service_type.value != "outlook":
|
||||
self._log("9. 发送验证码...")
|
||||
if not self._send_verification_code():
|
||||
result.error_message = "发送验证码失败"
|
||||
return result
|
||||
else:
|
||||
self._log("9. Outlook 邮箱,跳过发送验证码环节")
|
||||
|
||||
# 10. 获取验证码
|
||||
self._log("10. 等待验证码...")
|
||||
|
||||
Reference in New Issue
Block a user