Update: 将子项目从 submodule 转为完整内容

- 移除 GovAI, nomifun-tauri, 算力盒子 的 submodule 引用
- 添加所有子项目的完整源代码
- 保留原始 .git 为 .git.bak 备份
This commit is contained in:
freedak
2026-07-04 19:20:46 +08:00
parent 54d6465fa7
commit f7a720204a
3360 changed files with 802660 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
#!/bin/bash
# 重置admin用户密码为 admin123
DB_URL="postgres://freedak:@localhost:5432/govai_portal?sslmode=disable"
# bcrypt hash of "admin123" (cost 10)
# 使用Go的bcrypt生成
NEW_PASSWORD_HASH='$2a$10$rZ7eJQXgD5vV5Y8Fj.xYEOKqH1ZnPYv3xLqW2.rK/HzM8Nx7Z6Ybi'
echo "正在重置 admin@govai.gov.cn 的密码..."
# 使用docker exec连接数据库
docker exec -i govai-postgres psql -U freedak -d govai_portal <<EOF
UPDATE users
SET password_hash = '${NEW_PASSWORD_HASH}',
updated_at = NOW()
WHERE email = 'admin@govai.gov.cn';
SELECT email, role, updated_at FROM users WHERE email = 'admin@govai.gov.cn';
EOF
echo "密码已重置为: admin123"