From 4b500aa2989ef75da70e1fe4d1860b537a804139 Mon Sep 17 00:00:00 2001 From: jaredkipe Date: Mon, 16 Jan 2017 04:49:59 -0800 Subject: [PATCH] [FIX] auth_oauth: remove redirect if there is only 1 provider Forcing the redirection for 1 provider but not for 2 makes no sense. Was done at 311f041f for the reset password, applied to signup too. Closes #15032 --- addons/auth_oauth/controllers/main.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index 233cd839e6b..aa3f4e69b5c 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -111,8 +111,6 @@ class OAuthLogin(Home): @http.route() def web_auth_signup(self, *args, **kw): providers = self.list_providers() - if len(providers) == 1: - werkzeug.exceptions.abort(werkzeug.utils.redirect(providers[0]['auth_link'], 303)) response = super(OAuthLogin, self).web_auth_signup(*args, **kw) response.qcontext.update(providers=providers) return response