From 0f34326da4072d5082add65ec20237f2d1ad3936 Mon Sep 17 00:00:00 2001 From: Mohamad Ihsan Date: Thu, 5 Oct 2023 10:40:00 +0700 Subject: [PATCH] update --- application/modules/auth/auth.controller.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/modules/auth/auth.controller.js b/application/modules/auth/auth.controller.js index d81d0ea..ecc4696 100644 --- a/application/modules/auth/auth.controller.js +++ b/application/modules/auth/auth.controller.js @@ -74,6 +74,10 @@ const loginPartnerUser = async (req, res, next) => { let { email, password } = req.body; + var ip = req.headers['x-real-ip'] || req.connection.remoteAddress; + + console.log('INI LHO IP NYA....................: ' + ip); + // log info winston.logger.info( `${uniqueCode} [ REQUEST LOGIN-PARTNER-USER ]: ${JSON.stringify({