web/views/authentication.py
changeset 6418 948a9f8514b2
parent 6391 e330ead0804b
child 6435 71b2a3fe7ba1
equal deleted inserted replaced
6417:d2361abe8505 6418:948a9f8514b2
    77         if not login:
    77         if not login:
    78             raise NoAuthInfo()
    78             raise NoAuthInfo()
    79         return login, {'password': password}
    79         return login, {'password': password}
    80 
    80 
    81     def request_has_auth_info(self, req):
    81     def request_has_auth_info(self, req):
    82         return '__login' in req.form
    82         return req.get_authorization()[0] is not None
    83 
    83 
    84     def revalidate_login(self, req):
    84     def revalidate_login(self, req):
    85         return req.get_authorization()[0]
    85         return req.get_authorization()[0]
    86 
    86 
    87 class RepositoryAuthenticationManager(AbstractAuthenticationManager):
    87 class RepositoryAuthenticationManager(AbstractAuthenticationManager):