summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-03 15:44:20 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-03 15:44:20 +0700
commitb7efe84525fe87fabe2de0a52999a24439cf4814 (patch)
treef38ec3cbe004a11c79767735b23f9541d01e29ec
parent75933b6c16a6161930d8a51ac17a10f970f0d15b (diff)
Change splitter allowed_ip_address
-rw-r--r--indoteknik_api/controllers/controller.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_api/controllers/controller.py b/indoteknik_api/controllers/controller.py
index 261adf36..cfb2eaa5 100644
--- a/indoteknik_api/controllers/controller.py
+++ b/indoteknik_api/controllers/controller.py
@@ -25,7 +25,7 @@ class Controller(http.Controller):
remote_address = wsgienv['REMOTE_ADDR']
_logger.info("API Request from %s" % remote_address)
allowed_ip_address = request.env['ir.config_parameter'].get_param('api_allowed_ip_address')
- if remote_address in allowed_ip_address.split(','):
+ if remote_address in allowed_ip_address.split('-'):
request.session.authenticate(config.get('db_name'), 'it@fixcomart.co.id', 'Fixcomart378')
return True
return False