Loading client/client.cpp +1 −5 Changes for client/client.cpp: 1 added line, 5 removed lines. Original line number Diff line number Diff line Loading @@ -96,8 +96,6 @@ bool authdb::Client::ClientAuth(){ resp.push_back('\0'); std::cout << resp.size()<< std::endl; json_object_put(jresponse); json_object *jrequest; Loading @@ -115,7 +113,7 @@ bool authdb::Client::ClientAuth(){ int fcount = json_object_array_length(jrequest); for(int i =0; i<fcount; ++i) { json_object_object_foreach(json_object_array_get_idx(jrequest,i), key, val) { if(strcmp(key,"clientid")==0){ if(strcmp(key,"connectionid")==0){ _Con._SessionID=json_object_get_string(val); if(!_Con._SessionID.empty()){ json_tokener_free(jtok); Loading Loading @@ -155,8 +153,6 @@ bool authdb::Client::UserAuth(){ resp.push_back('\0'); std::cout << resp.size()<< std::endl; json_object_put(jresponse); json_object *jrequest; Loading Loading
client/client.cpp +1 −5 Changes for client/client.cpp: 1 added line, 5 removed lines. Original line number Diff line number Diff line Loading @@ -96,8 +96,6 @@ bool authdb::Client::ClientAuth(){ resp.push_back('\0'); std::cout << resp.size()<< std::endl; json_object_put(jresponse); json_object *jrequest; Loading @@ -115,7 +113,7 @@ bool authdb::Client::ClientAuth(){ int fcount = json_object_array_length(jrequest); for(int i =0; i<fcount; ++i) { json_object_object_foreach(json_object_array_get_idx(jrequest,i), key, val) { if(strcmp(key,"clientid")==0){ if(strcmp(key,"connectionid")==0){ _Con._SessionID=json_object_get_string(val); if(!_Con._SessionID.empty()){ json_tokener_free(jtok); Loading Loading @@ -155,8 +153,6 @@ bool authdb::Client::UserAuth(){ resp.push_back('\0'); std::cout << resp.size()<< std::endl; json_object_put(jresponse); json_object *jrequest; Loading