Commit 1bdace7a authored by jan.koester's avatar jan.koester
Browse files

some fixed \r\n list clientdata

parent 7769deb4
Loading
Loading
Loading
Loading
Loading
+10 −0
Changes for src/admin.cpp: 10 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -2355,6 +2355,14 @@ namespace authdb {

            delRecord(*backend,cldid,DataType::ClientData);


            libhttppp::HttpResponse rep;
            rep.setState(HTTP307);
            rep.setVersion(HTTPVERSION(1.1));
            std::string rurl="/settings/"; rurl+=cdid; rurl+="/listclients";
            rep.setHeaderData("Location")->push_back(rurl.c_str());
            rep.setContentType("text/html");
            rep.send(curreq,nullptr,0);
        }

        void SettingsController(libhttppp::HttpRequest *curreq, const int tid, ULONG_PTR args){
@@ -2494,6 +2502,8 @@ namespace authdb {
                listClients(curreq,tid,args);
            }else if(strncmp("createclient",url,12)==0){
                createClient(curreq,tid,args);
            }else if(strncmp("removeclient",url,12)==0){
                removeClient(curreq,tid,args);
            }else{
URLNOTFOUND:
                uuid_t did;