oca-ocb-security/odoo-bringout-oca-ocb-auth_signup/auth_signup/models/ir_http.py
Ernad Husremovic c0efcc53f5 19.0 vanilla
2026-03-09 09:32:28 +01:00

19 lines
561 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.http import request
class IrHttp(models.AbstractModel):
_inherit = 'ir.http'
@classmethod
def _pre_dispatch(cls, rule, args):
super()._pre_dispatch(rule, args)
# add signup token or login to the session if given
for key in ('auth_signup_token', 'auth_login'):
val = request.httprequest.args.get(key)
if val is not None:
request.session[key] = val