diff options
author | Simo Sorce <simo@redhat.com> | 2014-02-24 18:34:17 -0500 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-02-24 20:30:06 -0500 |
commit | 3574998f5f7c41e946610730638fd7e3fecb5835 (patch) | |
tree | af0fc74cd1ed071b66006f44ec5817b17e87ba09 /ipsilon/login | |
parent | f7070919e1350f784f639fd2054eab80384abeea (diff) | |
download | ipsilon-3574998f5f7c41e946610730638fd7e3fecb5835.tar.gz ipsilon-3574998f5f7c41e946610730638fd7e3fecb5835.tar.xz ipsilon-3574998f5f7c41e946610730638fd7e3fecb5835.zip |
Use cherrypy handlers to render error pages
Replaces custom code to render 401 Unauthorized page as well as
adds 400 and 500 handlers
Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/login')
-rwxr-xr-x | ipsilon/login/common.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ipsilon/login/common.py b/ipsilon/login/common.py index 5879fda..4ffdd8a 100755 --- a/ipsilon/login/common.py +++ b/ipsilon/login/common.py @@ -56,9 +56,8 @@ class LoginManagerBase(PluginObject): # otherwise destroy session and return error if not ref: - ref = cherrypy.config.get('base.mount', "") + '/unauthorized' - # Just make sure we destroy the session session.logout(None) + raise cherrypy.HTTPError(401) raise cherrypy.HTTPRedirect(ref) |