Commit 7dc7f4a4 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

only get_header exists in Zope-2.8, whereas only getHeader exists in Zope-2.12.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41922 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ca8a5367
......@@ -102,7 +102,7 @@ class ERP5ExternalAuthenticationPlugin(ERP5UserManager):
def extractCredentials(self, request):
""" Extract credentials from the request header. """
creds = {}
user_id = request.getHeader(self.user_id_key)
user_id = getattr(request, 'getHeader', request.get_header)(self.user_id_key)
if user_id is not None:
creds['external_login'] = user_id
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment