Commit ab3d2f47 authored by jan.koester's avatar jan.koester
Browse files

test

parent eaa19660
Loading
Loading
Loading
Loading
Loading
+5 −2
Changes for src/api.cpp: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ namespace authdb {
        }

        const SessionData *userLogin(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            std::lock_guard<std::mutex> lock(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

@@ -195,6 +196,7 @@ namespace authdb {


        const ClientConnections *ClientLogin(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            std::lock_guard<std::mutex> lock(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

@@ -329,7 +331,7 @@ namespace authdb {
        }

        void SessionInfo(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            std::lock_guard<std::mutex> lock(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

            if(!cmd || json_object_get_type(cmd)!=json_type::json_type_array)
@@ -357,7 +359,7 @@ namespace authdb {
        }

        void remSession(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            std::lock_guard<std::mutex> lock(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

            if(!cmd || json_object_get_type(cmd)!=json_type::json_type_array)
@@ -385,6 +387,7 @@ namespace authdb {

        void changeUserPw(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            std::lock_guard<std::mutex> lock(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

            if(!cmd || json_object_get_type(cmd)!=json_type::json_type_array)