summaryrefslogtreecommitdiff
path: root/index.py
diff options
context:
space:
mode:
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 == '':