[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:
parent
cebbede4c6
commit
8d5da6b8b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue