From 8c7115e2d3ae4bf8ba0b416de546f7331cde572d Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (aka lmi)" Date: Mon, 4 Aug 2014 15:08:47 +0200 Subject: [PATCH] [FIX] return 'None' if no user name is found in the request hearder --- auth_from_http_remote_user/controllers/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/auth_from_http_remote_user/controllers/main.py b/auth_from_http_remote_user/controllers/main.py index fae1943c6..9f4df7fbe 100644 --- a/auth_from_http_remote_user/controllers/main.py +++ b/auth_from_http_remote_user/controllers/main.py @@ -55,6 +55,7 @@ class Home(main.Home): if not login: _logger.error("Required fields '%s' not found in http headers\n %s", self._REMOTE_USER_ATTRIBUTE, headers) + return None user_ids = res_users.search(cr, SUPERUSER_ID, [('login', '=', login), ('active', '=', True)]) assert len(user_ids) < 2