[FIX] auth_signup: when POSTing signup data, there is always an error in qcontext as default behaviour is trying to login with data (error injected by super() call)

bzr revid: chs@openerp.com-20140211140255-mv84m6fb0sqkflm5
This commit is contained in:
Christophe Simonis 2014-02-11 15:02:55 +01:00
parent cebbede4c6
commit 8d5da6b8b4
1 changed files with 1 additions and 1 deletions

View 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