projects
/
cascardo
/
ipsilon.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use cherrypy handlers to render error pages
[cascardo/ipsilon.git]
/
ipsilon
/
login
/
common.py
diff --git
a/ipsilon/login/common.py
b/ipsilon/login/common.py
index
5879fda
..
4ffdd8a
100755
(executable)
--- 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)