[FIX] auth_signup: when POSTing signup data, there is always an error in qcontext...
authorChristophe Simonis <chs@openerp.com>
Tue, 11 Feb 2014 14:02:55 +0000 (15:02 +0100)
committerChristophe Simonis <chs@openerp.com>
Tue, 11 Feb 2014 14:02:55 +0000 (15:02 +0100)
bzr revid: chs@openerp.com-20140211140255-mv84m6fb0sqkflm5

addons/auth_signup/controllers/main.py

index ca3ee9e..ba04453 100644 (file)
@@ -62,7 +62,7 @@ class AuthSignup(openerp.addons.web.controllers.main.Home):
         }
         qcontext.update(config)
 
-        if 'error' in qcontext or mode not in ('reset', 'signup') or (not token and not config[mode]):
+        if 'error' in request.params or mode not in ('reset', 'signup') or (not token and not config[mode]):
             if isinstance(super_response, LazyResponse):
                 super_response.params['values'].update(config)
             return super_response