drnextgis
2017-02-08 19c006f19fb6f2f0e086c09b72e60b203d4e8797
Make code more readable by using namedtuple attribute

(cherry picked from commit cf40ff8)
1 files modified
2 ■■■ changed files
pyramid/authentication.py 2 ●●● patch | view | raw | blame | history
pyramid/authentication.py
@@ -1098,7 +1098,7 @@
        """ The userid parsed from the ``Authorization`` request header."""
        credentials = extract_http_basic_credentials(request)
        if credentials:
            return credentials[0]
            return credentials.username
    def remember(self, request, userid, **kw):
        """ A no-op. Basic authentication does not provide a protocol for