[FIX] Do not lose session.db on authentication error
This commit is contained in:
parent
08f222d707
commit
088f9e5b12
|
@ -85,7 +85,7 @@ class ir_http(osv.AbstractModel):
|
||||||
except (openerp.exceptions.AccessDenied, openerp.http.SessionExpiredException):
|
except (openerp.exceptions.AccessDenied, openerp.http.SessionExpiredException):
|
||||||
# All other exceptions mean undetermined status (e.g. connection pool full),
|
# All other exceptions mean undetermined status (e.g. connection pool full),
|
||||||
# let them bubble up
|
# let them bubble up
|
||||||
request.session.logout()
|
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):
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue