diff options
author | Simo Sorce <simo@redhat.com> | 2014-06-18 00:04:08 -0400 |
---|---|---|
committer | Patrick Uiterwijk <puiterwijk@redhat.com> | 2014-08-27 16:31:57 -0400 |
commit | 34bb81a826d023ce39714e1a6e027b19cf96a5fd (patch) | |
tree | c70e17feb7838c8996ee98949d526a552547dfb1 /ipsilon/ipsilon | |
parent | fca4035996c93f8f05ea3837133961e28a1248d6 (diff) | |
download | ipsilon-34bb81a826d023ce39714e1a6e027b19cf96a5fd.tar.gz ipsilon-34bb81a826d023ce39714e1a6e027b19cf96a5fd.tar.xz ipsilon-34bb81a826d023ce39714e1a6e027b19cf96a5fd.zip |
Rework remote_login and remove protect decorator
The protect decorator was not really being used for anything, remove it.
Change the way UserSession's remote_login() works.
If called now it either sets a REMOTE_USER (if found) or nukes the current
user data in the session.
This means this function can be safely called only in a login plugin now.
Signed-off-by: Simo Sorce <simo@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'ipsilon/ipsilon')
-rwxr-xr-x | ipsilon/ipsilon | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/ipsilon/ipsilon b/ipsilon/ipsilon index fec19e4..8cabc85 100755 --- a/ipsilon/ipsilon +++ b/ipsilon/ipsilon @@ -60,8 +60,6 @@ admin_config = datastore.get_admin_config() for option in admin_config: cherrypy.config[option] = admin_config[option] -cherrypy.tools.protect = cherrypy.Tool('before_handler', page.protect) - templates = os.path.join(cherrypy.config['base.dir'], 'templates') template_env = Environment(loader=FileSystemLoader(templates)) |