[FIX] auth_oauth: do not shadow non-oauth errors

bzr revid: chs@openerp.com-20140128181156-489gcdkiq0yaopda
This commit is contained in:
Christophe Simonis 2014-01-28 19:11:56 +01:00
parent 39c27c72d0
commit c5d7340e9b
1 changed files with 4 additions and 4 deletions

View File

@ -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.")
else:
error = None
response.params['values'].update(
providers=providers,
error=error,
)
response.params['values']['providers'] = providers
if error:
response.params['values']['error'] = error
return response