Compare commits

..
2 Commits
4 changed files with 13 additions and 2 deletions
+11
View File
@@ -592,3 +592,14 @@
- 迁移号写成 `0009` 会撞 `0009_knowledge_category_color.py`,pytest 报 `Multiple head revisions`
- e2e 里 `getByLabel("账号")` 会同时命中侧栏 `aria-label="账号设置"`,要用 `input[aria-label="账号"]`;
侧栏的「系统设置」要等 `/auth/me` 落地才渲染,断言得 `waitForFunction` 而不是立刻 `count()`
### 9.7 上线情况(2026-11-02)
- 生产 `~/.config/dadaotask/env.production` 追加 `SMS_LOGIN_ENABLED=false`、
`PLATFORM_ADMIN_PHONES=13605513683`;重启后 `/auth/methods` 回 `sms_code:false`,发码接口回 `2017`。
- 生产账号 13605513683 设了密码、绑了 `shufenhf@126.com`:手机号登录、全大写邮箱登录都通。
- 生产 SMTP 从「系统设置」页存进库(`configured:true, source:"db"`),当场发测试信成功。
- **短信登录只在本机开着**(`backend/.env` 的 `SMS_LOGIN_ENABLED=true`):新账号目前只能靠"验证码登录
自动注册"造出来,关掉连 e2e 都造不出测试用户。生产是关的,所以生产**暂时没有注册入口**——
要开放注册得先做「邮箱验证码注册 / 邀请注册」,这是下一步的事。
- 生产实拍:`2.Design/screens/prod-account-email.png`、`prod-settings-smtp.png`。
Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

+2 -2
View File
@@ -130,8 +130,8 @@ async function main() {
() => document.querySelector('input[aria-label="昵称"]')?.value?.length > 0,
);
await page.getByLabel("昵称").fill(nickname);
await page.getByRole("button", { name: "保存昵称" }).click();
await page.waitForSelector("text=昵称已更新");
await page.getByRole("button", { name: "保存资料" }).click();
await page.waitForSelector("text=资料已更新");
check("昵称保存成功", true);
const currentField = page.getByLabel("当前密码");