[web/auth] The auth retriever's authenticated() callback takes a session, not a cnx
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 15 Jul 2014 18:07:31 +0200
changeset 9883 0a5890491ab3
parent 9882 4db650d79e32
child 9884 5ad1c3a9c4a1
[web/auth] The auth retriever's authenticated() callback takes a session, not a cnx We don't have a cnx at that point.
web/views/authentication.py
--- a/web/views/authentication.py	Fri Jul 11 16:44:42 2014 +0200
+++ b/web/views/authentication.py	Tue Jul 15 18:07:31 2014 +0200
@@ -44,7 +44,7 @@
         """
         raise NotImplementedError()
 
-    def authenticated(self, retriever, req, cnx, login, authinfo):
+    def authenticated(self, retriever, req, session, login, authinfo):
         """callback when return authentication information have opened a
         repository connection successfully. Take care req has no session
         attached yet, hence req.execute isn't available.