summaryrefslogtreecommitdiffstats
path: root/ipsilon/login
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-01-27 18:07:33 +0100
committerSimo Sorce <simo@redhat.com>2014-02-17 10:45:07 -0500
commit4e4d0c1986ed37f6d2fc3553afce49fe700f5366 (patch)
treea2caf2fc80021274d988f98987f5b45c77cb0b4a /ipsilon/login
parent739ca49e93d7bf534bfc401633a612e16ff19bc6 (diff)
downloadipsilon-4e4d0c1986ed37f6d2fc3553afce49fe700f5366.tar.gz
ipsilon-4e4d0c1986ed37f6d2fc3553afce49fe700f5366.tar.xz
ipsilon-4e4d0c1986ed37f6d2fc3553afce49fe700f5366.zip
Unauthorized page
Signed-off-by: Petr Vobornik <pvoborni@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/login')
-rwxr-xr-xipsilon/login/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipsilon/login/common.py b/ipsilon/login/common.py
index 416ff31..7ff6e73 100755
--- a/ipsilon/login/common.py
+++ b/ipsilon/login/common.py
@@ -37,7 +37,7 @@ class LoginManagerBase(PluginObject):
def auth_successful(self, username):
# save ref before calling UserSession login() as it
# may regenerate the session
- ref = '/idp'
+ ref = cherrypy.config.get('base.mount', "") + '/'
if 'referral' in cherrypy.session:
ref = cherrypy.session['referral']
@@ -51,8 +51,8 @@ class LoginManagerBase(PluginObject):
if self.next_login:
return self.redirect_to_path(self.next_login.path)
- # FIXME: show an error page instead
- raise cherrypy.HTTPError(401)
+ ref = cherrypy.config.get('base.mount', "") + '/unauthorized'
+ raise cherrypy.HTTPRedirect(ref)
class LoginPageBase(Page):