diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-08-29 13:37:39 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-08-29 13:37:39 +0200 |
| commit | d61873ac4a3ef2e30f06adbf8658d59f3be8b2dd (patch) | |
| tree | 112ff883d24c9fb3087a7699ece35dc79db9f924 /addons/auth_oauth | |
| parent | 55d1c66c8efdd432603e777fe3fe4e74a6e9275d (diff) | |
| parent | 10d88083a0406522513340a85faffe7c4ad136ab (diff) | |
[MERGE] forward port branch saas-15 up to 10d88083a04
Diffstat (limited to 'addons/auth_oauth')
| -rw-r--r-- | addons/auth_oauth/controllers/main.py | 17 |
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): |
