Merge pull request #3356 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
SamirLADOUI-sa 2025-05-29 10:37:41 +01:00 committed by GitHub
commit 2daccfdb8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class AuthenticationController(http.Controller):
end_time_pc = time.perf_counter()
execution_time_pc = end_time_pc - start_time_pc
_logger.info("TIME VALIDATION API: %s seconds", execution_time_pc)
_logger.info("TIME VALIDATION API: %s seconds, user id: %s, user name: %s", execution_time_pc, request.env.user.id, request.env.user.name)
return http_helper.response(message="uploaded success",data=result['data'])
@http.route('/rest_api/refresh',type='http', auth='none', csrf=False, cors='*',methods=['POST'])
@ -254,5 +254,5 @@ class AuthenticationController(http.Controller):
http_helper.cleanup()
end_time_pc = time.perf_counter()
execution_time_pc = end_time_pc - start_time_pc
_logger.info("TIME LOGIN API: %s seconds", execution_time_pc)
_logger.info("TIME LOGIN API: %s seconds, user id: %s, user name: %s", execution_time_pc, user.id, user.name)
return http_helper.response(data=dic, message=_("User log in successfully"))