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

fxied

parent ab3d2f47
Loading
Loading
Loading
Loading
Loading
+3 −3
Changes for src/api.cpp: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -121,7 +121,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);
            std::lock_guard<std::mutex> lock2(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

            if(!cmd || json_object_get_type(cmd)!=json_type::json_type_array)
@@ -197,7 +197,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);
            std::lock_guard<std::mutex> lock2(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

            if(!cmd || json_object_get_type(cmd)!=json_type::json_type_array)
@@ -387,7 +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);
            std::lock_guard<std::mutex> lock2(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");

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