Skip to content
Snippets Groups Projects
Commit 5280b1f5 authored by bve-odoo's avatar bve-odoo
Browse files

[FIX] auth_oauth: avoid context propagation when registering 2 accounts


closes odoo/odoo#27664

Signed-off-by: default avatarPierre Masereel (pim) <pim@odoo.com>
parent 11b56a50
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ from odoo import api, http, SUPERUSER_ID, _
from odoo.exceptions import AccessDenied
from odoo.http import request
from odoo import registry as registry_get
from odoo.tools.misc import clean_context
from odoo.addons.auth_signup.controllers.main import AuthSignupHome as Home
from odoo.addons.web.controllers.main import db_monodb, ensure_db, set_cookie_and_redirect, login_and_redirect
......@@ -126,7 +127,7 @@ class OAuthController(http.Controller):
if not http.db_filter([dbname]):
return BadRequest()
provider = state['p']
context = state.get('c', {})
context = clean_context(state.get('c', {}))
registry = registry_get(dbname)
with registry.cursor() as cr:
try:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment