feat(mail): 接入 freemail 生成与验证码链路#81
Open
ba0gu0 wants to merge 1 commit into
Open
Conversation
- 新增 freemail 独立 provider 与工具层,支持登录后拉取域名、自动生成邮箱地址、按邮箱轮询验证码。\n- 将 freemail 嵌入注册与登录的验证码流程,并在侧栏补齐 freemail 入口、配置项和部署跳转。\n- 补充 freemail 归一化与生成逻辑测试,验证域名拉取与地址生成路径。\n\n验证:\n- node --check background.js sidepanel/sidepanel.js background/freemail-provider.js\n- node --test tests/freemail-utils.test.js tests/cloudflare-temp-email-utils.test.js tests/hosted-checkout-verification-code.test.js\n- git diff --check
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
这次给 GuJumpgate 加了 freemail 支持。这里的 freemail 指的是这个项目:https://github.com/idinging/freemail。
配置
在侧栏里选择
freemail之后,需要填写这几项:API 地址管理员用户名管理员密码主域名主域名可以留空。留空时,扩展会先调用/api/domains,然后用返回的第一个域名生成邮箱。Root Token和邮件接收这两个字段已经去掉了,不需要再填。使用方式
点击“获取/生成”后,扩展会直接调用 freemail 的接口生成邮箱地址,然后回填到注册邮箱输入框里。
验证码还是走原来的 Step 4 / Step 8 流程,只是收件来源换成了 freemail。
验证
node --check background.js sidepanel/sidepanel.js background/freemail-provider.jsnode --test tests/freemail-utils.test.js tests/cloudflare-temp-email-utils.test.js tests/hosted-checkout-verification-code.test.jsgit diff --check