Skip to content
Snippets Groups Projects
Commit a0e775e3 authored by Jeremy Kersten's avatar Jeremy Kersten
Browse files

[IMP] ir_http: authentification method can redirect to an other page

parent 1755c6fb
No related branches found
No related tags found
No related merge requests found
......@@ -87,7 +87,7 @@ class ir_http(osv.AbstractModel):
# let them bubble up
request.session.logout(keep_db=True)
getattr(self, "_auth_method_%s" % auth_method)()
except (openerp.exceptions.AccessDenied, openerp.http.SessionExpiredException):
except (openerp.exceptions.AccessDenied, openerp.http.SessionExpiredException, werkzeug.exceptions.HTTPException):
raise
except Exception:
_logger.exception("Exception during request Authentication.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment