##// END OF EJS Templates
Add setting for form autoban
neko259 -
r1632:40b96286 default
parent child Browse files
Show More
@@ -15,6 +15,7 b' LimitPostingSpeed = false'
15 15 PowDifficulty = 0
16 16 # Delay in seconds
17 17 PostingDelay = 30
18 Autoban = false
18 19
19 20 [Messages]
20 21 # Thread bumplimit
@@ -273,7 +273,8 b' class PostForm(NeboardForm):'
273 273 cleaned_data = super(PostForm, self).clean()
274 274
275 275 if cleaned_data['email']:
276 self.need_to_ban = True
276 if board_settings.get_bool('Forms', 'Autoban'):
277 self.need_to_ban = True
277 278 raise forms.ValidationError('A human cannot enter a hidden field')
278 279
279 280 if not self.errors:
General Comments 0
You need to be logged in to leave comments. Login now