web/views/authentication.py
changeset 3647 2941f4a0aab9
parent 3460 e4843535db25
child 3658 d8f2ec7e91fa
--- a/web/views/authentication.py	Tue Oct 13 08:48:00 2009 +0200
+++ b/web/views/authentication.py	Tue Oct 13 08:50:19 2009 +0200
@@ -81,13 +81,14 @@
         cnxprops = ConnectionProperties(self.vreg.config.repo_method,
                                         close=False, log=self.log_queries)
         try:
-            cnx = repo_connect(self.repo, login, password, cnxprops=cnxprops)
+            cnx = repo_connect(self.repo, login, password=password,
+                               cnxprops=cnxprops)
         except AuthenticationError:
             req.set_message(req._('authentication failure'))
             # restore an anonymous connection if possible
             anonlogin, anonpassword = self.vreg.config.anonymous_user()
             if anonlogin and anonlogin != login:
-                cnx = repo_connect(self.repo, anonlogin, anonpassword,
+                cnx = repo_connect(self.repo, anonlogin, password=anonpassword,
                                    cnxprops=cnxprops)
                 self._init_cnx(cnx, anonlogin, anonpassword)
             else: