Commit 7180ff81 authored by jan.koester's avatar jan.koester
Browse files

test

parent a1d9d981
Loading
Loading
Loading
Loading
Loading
+0 −1
Changes for src/admin.cpp: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -2464,7 +2464,6 @@ namespace authdb {
        }

        void SettingsController(libhttppp::HttpRequest *curreq, const int tid, ULONG_PTR args){
            std::lock_guard<std::mutex> lock(AuthSessionLock);
            libhttppp::HttpCookie cookie;
            const SessionData *sdat=nullptr;

+0 −8
Changes for src/api.cpp: 0 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -48,7 +48,6 @@ namespace authdb {
    public:

        void checkGPO(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthSessionLock);
            json_object *cmd=json_object_object_get(request,"commands");
            if(!cmd)
                throw(AuthBackendError("Invalid Api Commands"));
@@ -75,7 +74,6 @@ namespace authdb {
        }

        const SessionData *checkUser(json_object *request,json_object *response){
            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)
@@ -94,7 +92,6 @@ namespace authdb {
        }

        const ClientConnections *checkConnection(json_object *request,json_object *response){
            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)
@@ -121,7 +118,6 @@ namespace authdb {

        const SessionData *userLogin(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            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 +193,6 @@ namespace authdb {

        const ClientConnections *ClientLogin(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            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)
@@ -331,7 +326,6 @@ namespace authdb {
        }

        void SessionInfo(json_object *request,json_object *response){
            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)
@@ -359,7 +353,6 @@ namespace authdb {
        }

        void remSession(json_object *request,json_object *response){
            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)
@@ -387,7 +380,6 @@ namespace authdb {

        void changeUserPw(json_object *request,json_object *response){
            std::lock_guard<std::mutex> lock(AuthClientLock);
            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)
+0 −1
Changes for src/authdb.h: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -47,7 +47,6 @@ namespace authdb {
    extern class Client     AuthClient;
    extern std::mutex       AuthClientLock;
    extern class Session  AuthSession;
    extern std::mutex       AuthSessionLock;

    struct AuthHeader{
        int      start = 0xFE;