test(web): e2e 与投图脚本改成密码登录,补生产的阅读页实拍
CI / backend (push) Canceled after 0s

生产短信登录已经关了,脚本里那条发码路径跑不通;统一走 PASSWORD,读不到才回落到短信。
This commit is contained in:
Steven
2026-11-03 12:15:31 +08:00
parent d34a6ac69e
commit 35fdea7260
4 changed files with 14 additions and 0 deletions
+2
View File
@@ -28,7 +28,9 @@ function check(name, ok, extra = "") {
}
}
// 生产关了短信登录:PASSWORD 优先,其次读本机那份 dev 密码
const password = (() => {
if (process.env.PASSWORD) return process.env.PASSWORD;
try {
return readFileSync(PWD_FILE, "utf8").trim();
} catch {