summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
authorequinox <equinox@diac24.net>2011-09-27 06:52:54 +0200
committerequinox <equinox@diac24.net>2011-09-27 06:52:54 +0200
commit2a13c8256b2b64c3c61e043a1d9268b75a4597a4 (patch)
tree5ef513e495504a23ea0c094c747fc4e140139305 /index.py
parenteb5d8a3c4b403978a5827e972d4c5391f0a5ed62 (diff)
802.1X config template
Diffstat (limited to 'index.py')
-rwxr-xr-xindex.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.py b/index.py
index 6de80c5..9f78ea0 100755
--- a/index.py
+++ b/index.py
@@ -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 == '':