Commit 8d68eca1 authored by jan.koester's avatar jan.koester
Browse files

noew btter

parent 63f7ee50
Loading
Loading
Loading
Loading
Loading
+5 −5
Changes for src/authdb.cpp: 5 added lines, 5 removed lines.
Original line number Diff line number Diff line
@@ -162,13 +162,13 @@ namespace authdb {
        }

        void RequestEvent(libhttppp::HttpRequest * curreq, const int tid, ULONG_PTR args){
            if(curreq->getRequestURL().compare(0,10,"/authdb.js")==0){
            if(curreq->getRequestURL().compare(0,10,"/authdb.js",10)==0){
                libhttppp::HttpResponse rep;
                rep.setState(HTTP200);
                rep.setContentType("text/javascript");
                rep.send(curreq,_AuthJs.data(),_AuthJs.size());
                return;
            }else if(curreq->getRequestURL().compare(0,10,"/style.css")==0){
            }else if(curreq->getRequestURL().compare(0,10,"/style.css",10)==0){
                libhttppp::HttpResponse rep;
                rep.setState(HTTP200);
                rep.setContentType("text/css");
@@ -193,7 +193,7 @@ namespace authdb {

            }

            if(curreq->getRequestURL().compare(0,9,"/settings")==0){
            if(curreq->getRequestURL().compare(0,9,"/settings",9)==0){
                _AdminBackend.lock();
                try{
                    _AdminInterface.Request(curreq,tid,args);
@@ -204,7 +204,7 @@ namespace authdb {
                    rep.send(curreq,e.what(),strlen(e.what()));
                }
                _AdminBackend.unlock();
            }if(curreq->getRequestURL().compare(0,4,"/api")==0){
            }if(curreq->getRequestURL().compare(0,4,"/api",4)==0){
                _AdminBackend.lock();

                DomainBackend db(_AdminBackend);
@@ -257,7 +257,7 @@ namespace authdb {
                    rep.setContentType("text/html");
                    rep.send(curreq,"uuid not found!",12);
                }
            }else if(curreq->getRequestURL().compare(0,11,"/getavatar")==0){
            }else if(curreq->getRequestURL().compare(0,10,"/getavatar",10)==0){
                _AdminBackend.lock();
                try{
                    getAvatar(curreq,tid,args);