[FIX] auth_oauth: do not shadow non-oauth errors
bzr revid: chs@openerp.com-20140128181156-489gcdkiq0yaopda
This commit is contained in:
parent
39c27c72d0
commit
c5d7340e9b
|
@ -83,10 +83,10 @@ class OAuthLogin(openerp.addons.web.controllers.main.Home):
|
||||||
error = _("You do not have access to this database or your invitation has expired. Please ask for an invitation and be sure to follow the link in your invitation email.")
|
error = _("You do not have access to this database or your invitation has expired. Please ask for an invitation and be sure to follow the link in your invitation email.")
|
||||||
else:
|
else:
|
||||||
error = None
|
error = None
|
||||||
response.params['values'].update(
|
|
||||||
providers=providers,
|
response.params['values']['providers'] = providers
|
||||||
error=error,
|
if error:
|
||||||
)
|
response.params['values']['error'] = error
|
||||||
|
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue