diff --git a/SSH/PAM/src/coreHandler.c b/SSH/PAM/src/coreHandler.c index 31e223b..767bfef 100644 --- a/SSH/PAM/src/coreHandler.c +++ b/SSH/PAM/src/coreHandler.c @@ -291,9 +291,9 @@ int postInit(pam_handle_t *pamh, cJSON **availableMethods, struct ApplicationInf char *url; char *userIP = getUserIpAddress(pamh); - asprintf(&jsonObj,"{\"systemToken\":\"%s\",\"appUserId\":\"%s\",\"userEmail\":\"%s\",\"consumerParams\":{\"userIP\":\"%s\"}}",systemToken,appUserId,userEmail,userIP); + asprintf(&jsonObj,"{\"systemToken\":\"%s\",\"appUserId\":\"%s\",\"userEmail\":\"%s\",\"consumerParams\":{\"userIP\":\"%s\",\"appVer\":\"%s\",\"package\":\"Centos7\"}}",systemToken,appUserId,userEmail,userIP,moduleVersion); asprintf(&url,"%s/api/transaction/init",rublonApiServer); - + char *curlResponse = curlHandler(pamh, jsonObj, url, secretKey); if(curlResponse == NULL) { if((strcmp(getConfigValue("failmode"),"secure") != 0))