diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-07-13 17:12:07 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-07-13 17:12:07 +0200 |
| commit | 8285630ad2689eb8322534d02bded4d1a7ef8e99 (patch) | |
| tree | 8e7da60c2932fad4dadad27948b18bf05f4d2a8b /addons/auth_oauth | |
| parent | af4df80283f7951651f6f1af5d7761a74f34293c (diff) | |
| parent | 609491ad0e791a554e350590edd9d83dd0f49a12 (diff) | |
[MERGE] forward port branch saas-11.3 up to 609491ad0e7
Diffstat (limited to 'addons/auth_oauth')
| -rw-r--r-- | addons/auth_oauth/controllers/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index e231cd0f6d0..3b300070929 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -131,6 +131,8 @@ class OAuthController(http.Controller): def signin(self, **kw): state = json.loads(kw['state']) dbname = state['d'] + if not http.db_filter([dbname]): + return BadRequest() provider = state['p'] context = state.get('c', {}) registry = registry_get(dbname) @@ -180,6 +182,8 @@ class OAuthController(http.Controller): dbname = db_monodb() if not dbname: return BadRequest() + if not http.db_filter([dbname]): + return BadRequest() registry = registry_get(dbname) with registry.cursor() as cr: |
