From ca1971246c544d4770792c9884dcc637ede5ad80 Mon Sep 17 00:00:00 2001 From: Samir Ladoui Date: Thu, 24 Oct 2024 09:50:30 +0100 Subject: [PATCH] [FIX] odex_mobile: use token instead of auth user --- odex25_mobile/odex_mobile/controllers/rest_api_v2/attendance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_mobile/odex_mobile/controllers/rest_api_v2/attendance.py b/odex25_mobile/odex_mobile/controllers/rest_api_v2/attendance.py index 5e728f4d4..6385d701a 100644 --- a/odex25_mobile/odex_mobile/controllers/rest_api_v2/attendance.py +++ b/odex25_mobile/odex_mobile/controllers/rest_api_v2/attendance.py @@ -483,7 +483,7 @@ class AttendanceController(http.Controller): message = validator.get_server_error(e, user) return http_helper.errcode(code=403, message=message) - @http.route('/rest_api/v2/data-sync', type='http', auth='user', methods=['GET'], csrf=False) + @http.route('/rest_api/v2/data-sync', type='http', auth='none', methods=['GET'], csrf=False) def data_sync(self, **kwargs): # Assuming that http_method, body, headers, and token are obtained via helper methods http_method, body, headers, token = http_helper.parse_request()