The GitHub Actions job "Benchmarks" on texera.git/main has succeeded.
Run started by GitHub user github-merge-queue[bot] (triggered by 
github-merge-queue[bot]).

Head commit for run:
d108cc19fda36c7b8aa1b68dfc934c1c3563b99b / Meng Wang <[email protected]>
fix: strip the development forum's accounts and sessions from the Flarum seed 
(#9127)

### What changes were proposed in this PR?

`bin/forum/flarum.sql` was dumped from a development forum and still
held its member accounts, login sessions, visit logs with IP addresses,
and an API key that the dashboard's forum sign-up sent.

- `flarum.sql`: the three seeded accounts get placeholder emails
(`@example.com`) and no password, so their posts stay but nobody can
sign in as them. The sessions, the API key and the visit log are
dropped, and the posts' IP addresses are cleared.
- Sign-up without the key: the seed already allows open sign-up
(`allow_sign_up = 1`), so the key only let `FlarumService.register` skip
Flarum's CSRF check. The new `bin/extend.php` exempts the sign-up route
instead (by default Flarum exempts only login), and both install scripts
copy it into the forum.

### Any related issues, documentation, discussions?

Closes #9126. Independent of #9005, which is under discussion in #9006.

### How was this PR tested?

- `flarum.service.spec.ts` now checks that sign-up sends no
`Authorization` header. It passes, and fails against the old service.
- On Flarum 1.8.5 (the seed's version) with the cleaned seed: the seed
imports, sign-up then login works with `extend.php`, sign-up is rejected
by the CSRF check without it, and the seeded accounts cannot sign in.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (claude-opus-5-5)

Report URL: https://github.com/apache/texera/actions/runs/40155367521

With regards,
GitHub Actions via GitBox

Reply via email to