summaryrefslogtreecommitdiffstats
path: root/authentic/admin/settings.ptl
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-05-10 08:36:01 (GMT)
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-05-10 08:36:01 (GMT)
commitef46d3334b18b21b33f837268b1c29df937768d2 (patch)
tree12cefe91daa55e3744ecd7f5bf9bcc302a3f6274 /authentic/admin/settings.ptl
parent01486188ace4639aa362a69ca8bd71c22b524fc1 (diff)
downloadauthentic-old-ef46d3334b18b21b33f837268b1c29df937768d2.zip
authentic-old-ef46d3334b18b21b33f837268b1c29df937768d2.tar.gz
authentic-old-ef46d3334b18b21b33f837268b1c29df937768d2.tar.bz2
Use schema module for the login settings
Diffstat (limited to 'authentic/admin/settings.ptl')
-rw-r--r--authentic/admin/settings.ptl21
1 files changed, 0 insertions, 21 deletions
diff --git a/authentic/admin/settings.ptl b/authentic/admin/settings.ptl
index f25247c..d37ca04 100644
--- a/authentic/admin/settings.ptl
+++ b/authentic/admin/settings.ptl
@@ -783,27 +783,6 @@ class SettingsDirectory(schemagui.SettingDirectory):
def identity_options(self):
return self.identities()
- def login [html] (self):
- form = Form(enctype='multipart/form-data')
- login_cfg = get_cfg('login', {})
- form.add(CheckboxWidget, 'cancel_button', title = _('Display a cancel button'),
- value = login_cfg.get('cancel_button', False),
- hint = _('This is only applicable for Liberty single sign on requests'))
-
- form.add_submit('submit', _('Submit'))
- form.add_submit('cancel', _('Cancel'))
- if form.get_submit() == 'cancel':
- return redirect('.')
-
- if form.is_submitted() and not form.has_errors():
- cfg_submit(form, 'login', ['cancel_button'])
- return redirect('.')
-
- get_response().breadcrumb.append(('login', _('Login Screen')))
- html_top('settings', title = _('Login Screen'))
- '<h2>%s</h2>' % _('Login Screen')
- form.render()
-
def themes [html] (self):
request = get_request()