summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-08-29 13:37:39 +0200
committerChristophe Simonis <chs@odoo.com>2019-08-29 13:37:39 +0200
commitd61873ac4a3ef2e30f06adbf8658d59f3be8b2dd (patch)
tree112ff883d24c9fb3087a7699ece35dc79db9f924 /addons/auth_oauth/controllers/main.py
parent55d1c66c8efdd432603e777fe3fe4e74a6e9275d (diff)
parent10d88083a0406522513340a85faffe7c4ad136ab (diff)
[MERGE] forward port branch saas-15 up to 10d88083a04
Diffstat (limited to 'addons/auth_oauth/controllers/main.py')
-rw-r--r--addons/auth_oauth/controllers/main.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py
index 3b300070929..00eea3268b6 100644
--- a/addons/auth_oauth/controllers/main.py
+++ b/addons/auth_oauth/controllers/main.py
@@ -109,19 +109,10 @@ class OAuthLogin(Home):
return response
- @http.route()
- def web_auth_signup(self, *args, **kw):
- providers = self.list_providers()
- response = super(OAuthLogin, self).web_auth_signup(*args, **kw)
- response.qcontext.update(providers=providers)
- return response
-
- @http.route()
- def web_auth_reset_password(self, *args, **kw):
- providers = self.list_providers()
- response = super(OAuthLogin, self).web_auth_reset_password(*args, **kw)
- response.qcontext.update(providers=providers)
- return response
+ def get_auth_signup_qcontext(self):
+ result = super(OAuthLogin, self).get_auth_signup_qcontext()
+ result["providers"] = self.list_providers()
+ return result
class OAuthController(http.Controller):