mengw15 opened a new pull request, #9127:
URL: https://github.com/apache/texera/pull/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)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to