Move admin auth local

This commit is contained in:
john
2026-06-20 16:52:13 +08:00
parent 7a5b9cc912
commit a2333f991b
8 changed files with 508 additions and 39 deletions
+1 -4
View File
@@ -52,10 +52,7 @@ sleep 2
if curl -sf "http://127.0.0.1:${PORT}/" >/dev/null; then
echo "✅ memind_adm 已就绪: http://127.0.0.1:${PORT}/"
curl -sf "http://127.0.0.1:${PORT}/" >/dev/null && echo " 首页 OK"
curl -sf -X POST "http://127.0.0.1:${PORT}/auth/login" \
-H 'Content-Type: application/json' \
-d '{"username":"admin","password":"981122"}' >/dev/null \
&& echo " 登录 OK" || echo " ⚠️ 登录接口异常,请检查 ${API_LOG}"
echo " 登录请使用数据库中已初始化的 admin 账号"
else
echo "❌ 启动失败,最近日志:" >&2
tail -n 40 "${LOG}" >&2 || true