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

test

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

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

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


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

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

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

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


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

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

        Api(AuthBackend &admin,class uuid did, libhttppp::HttpRequest* curreq, const int tid, ULONG_PTR args) : _Backend(admin), _Did(did){

            std::lock_guard<std::mutex> lock(AuthClientLock);
            _SessionData=nullptr;

            libhttppp::HttpResponse rep;