source: cowsclient/trunk/cowsclient/controllers/securityredirect.py @ 5815

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cowsclient/trunk/cowsclient/controllers/securityredirect.py@5815
Revision 5815, 340 bytes checked in by domlowe, 11 years ago (diff)

closing security login window automatically

Line 
1import logging
2
3from cowsclient.lib.base import *
4
5log = logging.getLogger(__name__)
6
7class SecurityredirectController(BaseController):
8    def index(self):
9        if 'ndg.security.auth' in request.cookies.keys():
10            return '<html><head></head><body onload="window.close()"></body></html>'
11        else:
12            return abort(401)
13       
14
Note: See TracBrowser for help on using the repository browser.