diff options
author | equinox <equinox@diac24.net> | 2011-09-27 06:52:54 +0200 |
---|---|---|
committer | equinox <equinox@diac24.net> | 2011-09-27 06:52:54 +0200 |
commit | 2a13c8256b2b64c3c61e043a1d9268b75a4597a4 (patch) | |
tree | 5ef513e495504a23ea0c094c747fc4e140139305 /index.py | |
parent | eb5d8a3c4b403978a5827e972d4c5391f0a5ed62 (diff) |
802.1X config template
Diffstat (limited to 'index.py')
-rwxr-xr-x | index.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -50,6 +50,10 @@ class SubdapSite(object): def index(s): return render(errors = {}) + @expose('8021x.html') + def cfg8021x(s, username = "username"): + return render(errors = {}, username = username) + def login_perform(s, username, password): dn = "cn=%s,ou=people,dc=sublab,dc=org" % (username) try: @@ -65,6 +69,9 @@ class SubdapSite(object): @expose('login.html') def login(s, username = None, password = None): + if cherrypy.request.method.upper() == 'GET': + return render(errors = {}) + if username == None or password == None: return render(errors = {'password': 'Login incorrect'}) if username == '' or password == '': |