must reset cubes before next authentication tls-sprint
authorGraziella Toutoungis <graziella.toutoungis@logilab.fr>
Tue, 05 May 2009 15:40:07 +0200
branchtls-sprint
changeset 1682 36bd5cba09de
parent 1681 1586c0ed9a92
child 1683 c74566e61f1a
must reset cubes before next authentication
server/serverctl.py
--- a/server/serverctl.py	Tue May 05 15:39:43 2009 +0200
+++ b/server/serverctl.py	Tue May 05 15:40:07 2009 +0200
@@ -139,6 +139,8 @@
             return in_memory_cnx(config, login, pwd)
         except AuthenticationError:
             print 'wrong user/password'
+            # reset cubes else we'll have an assertion error on next retry
+            config._cubes = None
         login, pwd = manager_userpasswd()
 
 # repository specific command handlers ########################################