summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-12 01:08:50 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2009-04-12 01:08:50 (GMT)
commitb55a417528ff2c5abb1914050ca0822d65c77957 (patch)
tree7e1f91c011abc4310ab104b7ca7abd1cb3166fd7 /authentic/admin/settings.ptl
parentd7e655998980eb3b00cdd7eec1e61433a763dcd4 (diff)
downloadauthentic-old-b55a417528ff2c5abb1914050ca0822d65c77957.zip
authentic-old-b55a417528ff2c5abb1914050ca0822d65c77957.tar.gz
authentic-old-b55a417528ff2c5abb1914050ca0822d65c77957.tar.bz2
Add an require_ssl configuration option
* auhthentic/admin/settings.ptl:
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl3
1 files changed, 3 insertions, 0 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index 08d67ee..fdf9cfa 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -857,6 +857,9 @@ class SettingsDirectory(Directory):
form.add(CheckboxWidget, 'allow_ssl_login', title = _('Permit login using SSL'),
value = ssl_cfg.get('allow_ssl_login', False),
hint = _('Activate the URL /login_ssl that permit to use SSL client certificates for authentification'))
+ form.add(CheckboxWidget, 'require_ssl', title = _('Accept login only using SSL'),
+ value = ssl_cfg.get('require_ssl', False),
+ hint = _('It blocks any access using simple HTTP protocol, you still need to configure your webserver in order to use SSL'))
form.add_submit('submit', _('Submit'))
form.add_submit('cancel', _('Cancel'))
if form.get_submit() == 'cancel':