summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2008-10-15 08:08:20 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2008-10-15 08:08:20 (GMT)
commit0f59b745948176209459840e5a27eb9e55389e5e (patch)
tree141d4fc4855f38b192d4d7125eba54ed19796ee8 /authentic/admin/settings.ptl
parent226842212f5e5043915c0beed8227422a1177d7b (diff)
downloadauthentic-old-0f59b745948176209459840e5a27eb9e55389e5e.zip
authentic-old-0f59b745948176209459840e5a27eb9e55389e5e.tar.gz
authentic-old-0f59b745948176209459840e5a27eb9e55389e5e.tar.bz2
do not long wrong passwords by default; kept the possibility as an option
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl6
1 files changed, 5 insertions, 1 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index 0d60e39..bf03f4e 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -803,6 +803,9 @@ class SettingsDirectory(Directory):
form.add(IntWidget, 'max_length', title = _('Maximum password length'),
value = int(passwords_cfg.get('max_length', 0)),
hint = _('0 for unlimited length'))
+ form.add(CheckboxWidget, 'log_wrong_passwords',
+ title = _('Log wrong passwords'),
+ value = passwords_cfg.get('log_wrong_passwords', False))
form.add_submit('submit', _('Submit'))
form.add_submit('cancel', _('Cancel'))
@@ -811,7 +814,8 @@ class SettingsDirectory(Directory):
if form.is_submitted() and not form.has_errors():
cfg_submit(form, 'passwords', ['can_change', 'generate',
- 'lost_password_behaviour', 'min_length', 'max_length'])
+ 'lost_password_behaviour', 'min_length', 'max_length',
+ 'log_wrong_passwords'])
return redirect('.')
get_response().breadcrumb.append(('passwords', _('Passwords')))