2026-09-21
Furrium Network
a085b385b1
fix: 修改密码/邮箱后保持登录并返回首页
...
此前修改密码或修改邮箱成功后,前端会强制登出并跳转到 ?page=login,
用户必须重新输入凭据,体验割裂。
服务端在这两个接口里递增 token_version 使旧令牌失效(正确的安全设计),
但没有补发新令牌,因此前端只能登出。现在改为:
- server.js: 抽出 issueToken(),登录与令牌刷新共用;改密码/改邮箱用
RETURNING 取回新的 token_version 并签发令牌随响应返回
- js/api.js: changePassword / changeEmail 接住响应中的 token 并写入
localStorage,否则用户仍会在下一步操作时被登出
- js/app.js: 两个入口不再清空登录态,改为提示成功并 switchPage('feed')
同时修复一处笔误:清理登录态时用的是 localStorage.removeItem('token'),
而实际存储键为 'forumlify-token'(见 api.js:4),导致该行从未生效,
令牌一直残留在本地存储中。现已随登出逻辑一并移除。
2026-09-21 20:24:28 +08:00
Furrium Network
ec235d37bd
fix: 补回迁移遗漏的鉴权与审计字段
...
migrations/001_initial.sql 创建 users / event_logs 时遗漏了 server.js
强依赖的若干列,而 schema.sql 里一直存在这些列,两套定义因此漂移。
通过 npm run migrate 或 Docker 部署出来的库,在用户登录之后所有需要
鉴权的接口都会返回 500:
- GET /api/auth/me 认证中间件查询 token_version
- POST /api/posts 同上
- GET /api/event-logs 审计写入需要 method/path 等列
- POST /api/auth/recovery-codes/generate 同上
注册与登录本身不触及这些列,所以站点表现为「能登录,但登录后什么都做
不了」。001 已被记入 schema_migrations 无法重跑,因此新增 002 修复存量
库;语句全部幂等,对全新库同样安全。token_version 取 NOT NULL DEFAULT 0,
存量用户现有令牌保持有效,不会被强制重新登录。
同时:
- 新增 test/migration-schema.test.js,在 SQL 文本层面断言迁移必须定义
server.js 依赖的列。原有 8 个测试只覆盖未认证路径,因此这个故障在
测试全绿的情况下被漏掉了。
- 修正 README 中失效的 clone 地址与目录名,并修复断裂的环境变量表格。
- 移除 js/api.js 中重复定义的 togglePinPost。
2026-09-21 20:14:10 +08:00
2026-09-03
Furrium Network
3808fd2e94
修复了移动端帖子显示问题
2026-09-03 20:39:58 +08:00
2026-08-14
lezi
5b1b16c222
Merge pull request #14 from ANONYMOUSZED-beep/fix/secure-image-upload
...
Secure image uploads and post publishing
2026-08-14 15:02:43 +08:00
Arun
593e766596
fix: centralize upload authorization headers
2026-08-14 06:57:22 +00:00
forumlify[bot]
5314d60f53
fix: resolve conflicts for PR #14
2026-08-14 06:48:26 +00:00
lezi
8a2036035a
Merge pull request #15 from ANONYMOUSZED-beep/fix/atomic-account-recovery
...
Make account recovery atomic and session aware
2026-08-14 14:38:50 +08:00
forumlify[bot]
1fce581c52
fix: resolve conflicts for PR #15
2026-08-14 06:27:04 +00:00
lezi
547742cb6d
Merge pull request #13 from ANONYMOUSZED-beep/chore/production-deployment-lite
...
Harden production deployment lifecycle
2026-08-14 13:19:29 +08:00
lezi
01250c0e3f
Merge pull request #17 from ANONYMOUSZED-beep/fix/bounded-input-validation
...
Validate and bound API inputs
2026-08-14 12:59:42 +08:00
Arun
b7db82ec0b
Preserve upgrade compatibility in deployment
2026-08-14 04:42:05 +00:00
Arun
17dc1c4f41
Close empty recovery-code transactions
2026-08-14 04:02:39 +00:00
Arun
28bdea9572
Merge remote-tracking branch 'origin/Lite' into work-pr13
...
# Conflicts:
# README.md
# docker-compose.yml
# package.json
# server.js
2026-08-14 03:37:37 +00:00
Arun
c3e87d5a92
Merge remote-tracking branch 'origin/Lite' into work-pr17
...
# Conflicts:
# server.js
2026-08-14 03:35:55 +00:00
Arun
d2f87b13ae
Preserve legacy account compatibility
2026-08-14 03:34:11 +00:00
Arun
50d916bb28
Address account recovery review feedback
2026-08-14 03:34:08 +00:00
Furrium Network
1104b6e2e4
Update README.md
2026-08-14 10:44:38 +08:00
lezi
bce8d1fdc7
Merge pull request #16 from ANONYMOUSZED-beep/fix/database-concurrency-invariants
...
Enforce database concurrency invariants
2026-08-14 09:43:07 +08:00
lezi
6e6e8ca8f4
Merge pull request #26 from forumlify/feat/issue-pr-templates
...
feat: add bilingual PR and issue templates with branch selection
2026-08-14 09:40:40 +08:00
lezi-fun
3f7b9dbb9c
fix: note that npm run build is next-branch only in PR template
2026-08-14 09:38:22 +08:00
lezi-fun
b036a51eef
feat: add bilingual PR and issue templates with branch selection
2026-08-14 09:31:55 +08:00
lezi-fun
52fed4212b
fix: pass PR head repository to ghbot
2026-08-14 09:19:00 +08:00
2026-08-13
Furrium Network
07596ea83c
Update README.md
2026-08-13 23:26:49 +08:00
Arun
8ad3ca578f
Address input validation review feedback
2026-08-13 15:11:25 +00:00
lezi-fun
3adbe4fab4
Configure ghbot R2 persistence
2026-08-13 22:56:40 +08:00
lezi
f074ab890c
Merge pull request #22 from ANONYMOUSZED-beep/fix/server-owned-audit-logs
...
Make audit logs server owned
2026-08-13 22:26:48 +08:00
lezi
cb0377220c
chore: stop running ghbot on PR close
2026-08-13 22:00:42 +08:00
lezi
0864aa2b92
chore: enable ghbot review modes and conflict recovery
2026-08-13 21:56:43 +08:00
lezi
14b63f4e1c
chore: migrate ghbot workflow to goose
2026-08-13 14:28:02 +08:00
lezi
c3b197d488
chore: migrate ghbot workflow to goose
2026-08-13 14:27:23 +08:00
lezi
29f7795f00
ci: configure ghbot review automation
2026-08-13 11:42:57 +08:00
2026-08-12
lezi-fun
ab66d9a6fc
fix: require unique Lite JWT secret
2026-08-12 22:34:05 +08:00
lezi-fun
16f39fc7c6
fix: restore Lite server bootstrap
2026-08-12 22:19:02 +08:00
Furrium Network
5721a84c54
安全问题
2026-08-12 19:45:35 +08:00
Furrium Network
1cd6b5c4dd
代理
2026-08-12 16:40:46 +08:00
lezi-fun
39f219d2ac
fix: push to ghcr.io/furrium/forumlify:lite (repo's own GHCR package)
...
GITHUB_TOKEN from Furrium/forumlify cannot push lezi-fun/forumlify-deploy
(permission_denied). Use github.repository → ghcr.io/furrium/forumlify:lite
in workflow and compose.
2026-08-12 09:31:52 +08:00
lezi-fun
aa9bcd8d12
ci: GHCR docker build for Lite branch (repo's own package) + cleanup
...
- .github/workflows/docker-lite.yml: build & push on Lite branch push
→ ghcr.io/furrium/forumlify:lite (linux/amd64+arm64)
- docker-compose.yml: pull :lite image from GHCR, PORT/ENABLE_CAPTCHA
env, restart: unless-stopped
- .gitignore: ignore .open-next/.vercel/.next/.wrangler build artifacts
- Remove build artifacts accidentally committed earlier
2026-08-12 09:28:38 +08:00
lezi-fun
9f5944020b
chore: ignore .wrangler local state
2026-08-12 09:21:13 +08:00
lezi-fun
9e407d0a2d
ci: GHCR docker build for Lite branch + compose updates
...
- .github/workflows/docker-lite.yml: build & push ghcr.io/lezi-fun/
forumlify-deploy:lite on Lite branch push (linux/amd64+arm64)
- docker-compose.yml: pull :lite image from GHCR, add PORT / ENABLE_
CAPTCHA env, restart: unless-stopped on both services
2026-08-12 09:21:12 +08:00
lezi-fun
8f88f803f5
chore: ignore .wrangler local state
2026-08-12 09:21:10 +08:00
Furrium Network
5d71e66354
允许跳转
2026-08-12 09:19:00 +08:00
Furrium Network
320000c8b9
允许点击iframe中的超链接
2026-08-12 09:15:59 +08:00
Furrium Network
46dd281c7b
修复了吗?
2026-08-12 07:51:36 +08:00
Furrium Network
503a34f5fb
自定义页面更新
2026-08-12 07:48:20 +08:00
2026-08-11
Arun
a5a880dfb2
Make audit logs server owned
2026-08-11 10:59:58 +00:00
Arun
3fc74ae189
Add integrated tests and patch dependencies
2026-08-11 10:34:46 +00:00
Arun
feefadae11
Validate and bound API inputs
2026-08-11 09:58:56 +00:00
Arun
924f9ffcc6
Enforce database concurrency invariants
2026-08-11 09:51:33 +00:00
Arun
2e12468293
Make account recovery atomic and session aware
2026-08-11 09:44:39 +00:00
Arun
5605ded575
Secure image uploads and post publishing
2026-08-11 09:38:33 +00:00