Skip to content

基于目前登录逻辑优化登录验证流程,支持二步验证自动获取邮箱验证码并验证 - #10

Open
opcwj wants to merge 6 commits into
yanglbme:mainfrom
opcwj:contribute
Open

基于目前登录逻辑优化登录验证流程,支持二步验证自动获取邮箱验证码并验证#10
opcwj wants to merge 6 commits into
yanglbme:mainfrom
opcwj:contribute

Conversation

@opcwj

@opcwj opcwj commented Aug 3, 2026

Copy link
Copy Markdown

No description provided.

opcwj and others added 6 commits July 30, 2026 17:29
- Implement SHA256(salt+number) Altcha PoW verification
- Add CSRF token extraction
- Include device fingerprint parameter
- Add debugging documentation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Changed Altcha algorithm from leading zeros to hash matching
- SHA256(salt + number) must equal challenge from server
- Implement Base64 encoding for altcha parameter
- Add X-Requested-With header for XMLHttpRequest
- Use server-provided signature field
- Generate device_fingerprint as SHA256[:16]
- Include all required form parameters: email, passwd, altcha, csrf_token, device_fingerprint, remember_me

This fixes the 'System cannot accept verification result' error.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Added _verify_device() method for automatic device verification
- Changed device_fingerprint to use stable value based on email
- Added DEVICE_VERIFY_GUIDE.md for collecting verification flow info

Note: Waiting for user to provide device verification network flow
to implement automatic verification properly.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- 支持陌生设备邮箱验证码自动读取(IMAP),配置 imap_password 即可全自动登录+签到,无需手动填验证码
- 设备指纹默认由邮箱生成,稳定恒定,验证一次后永不再触发
- 记录邮箱最新邮件 UID 基线,只接受验证触发后新到的验证码,避免误读旧码
- 新增 device_code/device_token/device_fingerprint/imap_* 入参及 action.yml 配置
- 流量解析适配用户中心页面新版结构(user-badge/user-traffic-label),已签到也能输出流量使用情况
- main.py 支持读取本地 config.json 调试(GitHub Actions 环境自动忽略),参数优先级 config.json > 环境变量
- 新增极简 workflow 模板 action-simple.yml 与 config.example.json
- README 补充本地调试、登录签到逻辑、陌生设备验证说明;默认站点列表加入 cordc.xyz
- 清理调试遗留文件,敏感文件加入 .gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant