Browse Source

[FIX] properlyt return the Unauthorized() response to avoid warning in the log file

pull/34/head
Laurent Mignon (aka lmi) 10 years ago
parent
commit
a70e13365d
  1. 2
      auth_from_http_remote_user/controllers/main.py

2
auth_from_http_remote_user/controllers/main.py

@ -45,7 +45,7 @@ class Home(main.Home):
try: try:
self._bind_http_remote_user(http.request.session.db) self._bind_http_remote_user(http.request.session.db)
except http.AuthenticationError: except http.AuthenticationError:
return werkzeug.exceptions.Unauthorized()
return werkzeug.exceptions.Unauthorized().get_response()
return super(Home, self).web_client(s_action, **kw) return super(Home, self).web_client(s_action, **kw)
def _get_user_id_from_attributes(self, res_users, cr): def _get_user_id_from_attributes(self, res_users, cr):

Loading…
Cancel
Save