feat(register): Outlook 邮箱注册跳过发送验证码环节

Outlook 邮箱由 OpenAI 直接发邮件,无需调用 _send_verification_code(),跳过该步骤直接等待收件
This commit is contained in:
cnlimiter
2026-03-21 02:49:32 +08:00
parent 61f746aea8
commit cacfb3da9c

View File

@@ -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. 等待验证码...")