[views/authentication] fix http auth regression (no message)
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 08 Oct 2010 11:54:17 +0200
changeset 6418 948a9f8514b2
parent 6417 d2361abe8505
child 6421 32a6b11c4013
[views/authentication] fix http auth regression (no message)
web/views/authentication.py
--- a/web/views/authentication.py	Fri Oct 08 11:11:31 2010 +0200
+++ b/web/views/authentication.py	Fri Oct 08 11:54:17 2010 +0200
@@ -79,7 +79,7 @@
         return login, {'password': password}
 
     def request_has_auth_info(self, req):
-        return '__login' in req.form
+        return req.get_authorization()[0] is not None
 
     def revalidate_login(self, req):
         return req.get_authorization()[0]