mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-05-11 18:10:53 +08:00
fix: avoid reading six-digit email domains as OTPs
This commit is contained in:
@@ -342,9 +342,8 @@ class TempMailService(BaseEmailService):
|
||||
if "openai" not in sender and "openai" not in content.lower():
|
||||
continue
|
||||
|
||||
match = re.search(pattern, content)
|
||||
if match:
|
||||
code = match.group(1)
|
||||
code = self._extract_otp_from_text(content, pattern)
|
||||
if code:
|
||||
logger.info(f"从 TempMail 邮箱 {email} 找到验证码: {code}")
|
||||
self.update_status(True)
|
||||
return code
|
||||
|
||||
Reference in New Issue
Block a user