~ralfjung-e/mailman/2.1

« back to all changes in this revision

Viewing changes to Mailman/Defaults.py.in

  • Committer: Ralf Jung
  • Date: 2019-06-10 15:29:24 UTC
  • Revision ID: post@ralfj.de-20190610152924-djf8dd0a1btzjdfb
implement a simple CAPTCHA scheme based on questions and answers configured by the site admin

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
# test.
132
132
SUBSCRIBE_FORM_MIN_TIME = seconds(5)
133
133
 
 
134
# Use a custom question-answer CAPTCHA to protect against subscription spam.
 
135
# Has no effect unless SUBSCRIBE_FORM_SECRET is set.
 
136
# Should be set to a dict mapping language keys to a list of pairs
 
137
# of questions and regexes for the answers, e.g.
 
138
# CAPTCHAS = {
 
139
#   'en': [
 
140
#     ('What is two times six?', '(12|twelve)'),
 
141
#   ],
 
142
#   'de': [
 
143
#     ('Was ist 3 mal 6?', '(18|achtzehn)'),
 
144
#   ],
 
145
# }
 
146
# The regular expression must match the full string, i.e., it is implicitly
 
147
# acting as if it had "^" in the beginning and "$" at the end.
 
148
CAPTCHAS = None
 
149
 
134
150
# Use Google reCAPTCHA to protect the subscription form from spam bots.  The
135
151
# following must be set to a pair of keys issued by the reCAPTCHA service at
136
152
# https://www.google.com/recaptcha/admin