[IMP] ir_http: authentification method can redirect to an other page
This commit is contained in:
parent
1755c6fb6e
commit
a0e775e3fa
|
@ -87,7 +87,7 @@ class ir_http(osv.AbstractModel):
|
||||||
# let them bubble up
|
# let them bubble up
|
||||||
request.session.logout(keep_db=True)
|
request.session.logout(keep_db=True)
|
||||||
getattr(self, "_auth_method_%s" % auth_method)()
|
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
|
raise
|
||||||
except Exception:
|
except Exception:
|
||||||
_logger.exception("Exception during request Authentication.")
|
_logger.exception("Exception during request Authentication.")
|
||||||
|
|
Loading…
Reference in New Issue