summaryrefslogtreecommitdiffstats
path: root/ipsilon/login/common.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipsilon/login/common.py')
-rwxr-xr-xipsilon/login/common.py3
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)