diff options
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 == '': |