mirror of
https://github.com/bringout/oca-ocb-security.git
synced 2026-04-25 22:22:07 +02:00
Initial commit: Security packages
This commit is contained in:
commit
bb469e4763
1399 changed files with 278378 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
# -*- 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 Http(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
|
||||
Loading…
Add table
Add a link
Reference in a new issue