Merge lp:~widelands-dev/widelands-website/anti_spambot into lp:widelands-website
Proposed by
kaputtnik
Status: | Merged |
---|---|
Merged at revision: | 474 |
Proposed branch: | lp:~widelands-dev/widelands-website/anti_spambot |
Merge into: | lp:widelands-website |
Diff against target: |
42 lines (+13/-1) 2 files modified
local_settings.py.sample (+1/-0) pybb/views.py (+12/-1) |
To merge this branch: | bzr merge lp:~widelands-dev/widelands-website/anti_spambot |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
Review via email: mp+332911@code.launchpad.net |
Description of the change
Logout a user if he has written MAX_HIDDEN_POSTS and set his property 'is_active' to false, so he can't log in anymore. The user get prompted with a forbidden page then.
This assumes a human would not write the same thing much often when he get prompted with the 'Posts have to be mederated' info, but bots do.
The initial idea was a two step approach, by first logging out only after x hidden posts and additionally set him inactive after x+y hidden posts. But i think this is unrewarding because the url to add a new topic/post asks for login.
To post a comment you must log in.
Code LGTM, not tested.