diff options
Diffstat (limited to 'indoteknik_api/controllers/controller.py')
| -rw-r--r-- | indoteknik_api/controllers/controller.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py index 9de2fd4c..d1ecab57 100644 --- a/indoteknik_api/controllers/controller.py +++ b/indoteknik_api/controllers/controller.py @@ -5,6 +5,7 @@ import json from odoo import http from odoo.http import request +from odoo.tools.config import config from pytz import timezone import logging @@ -31,6 +32,7 @@ class Controller(http.Controller): # rafizadanly localhost allowed_ip_address.append('182.253.155.143') if remote_address in allowed_ip_address: + request.session.authenticate(config.get('db_name'), 'it@fixcomart.co.id', 'Fixcomart378') return True return False |
