修复IMAP连接:支持非SSL端口143
- IMAP服务器 111.229.206.54 只开放143端口(非SSL),993不通 - 默认配置改为端口143、ssl=False - EmailVerifier 增加 use_ssl 参数,支持 IMAP4 和 IMAP4_SSL - Account 模型增加 email_imap_ssl 字段 - 数据库迁移:新增列 + 修正旧数据端口和SSL设置 - 导入账号时自动填充 ssl 配置 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
2b8716cf72
commit
52102655ac
@@ -480,6 +480,7 @@ class DouyuLogin:
|
||||
imap_port=self.account.email_imap_port,
|
||||
username=self.account.email,
|
||||
password=self.account.email_password,
|
||||
use_ssl=self.account.email_imap_ssl,
|
||||
)
|
||||
|
||||
return verifier.get_verification_code(
|
||||
|
||||
Reference in New Issue
Block a user