summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaredkipe <jared@jaredkipe.com>2017-01-16 04:49:59 -0800
committerMartin Trigaux <mart-e@users.noreply.github.com>2017-01-16 13:49:59 +0100
commit4b500aa2989ef75da70e1fe4d1860b537a804139 (patch)
treecf9f951905d89b197bcc27f246eaae66c7c1d8c9
parent47c60db4a06174baea43c0fda0dbf6c262a1676d (diff)
[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
-rw-r--r--addons/auth_oauth/controllers/main.py2
1 files changed, 0 insertions, 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