Loading src/admin.cpp +10 −0 Changes for src/admin.cpp: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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){ Loading Loading @@ -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; Loading Loading
src/admin.cpp +10 −0 Changes for src/admin.cpp: 10 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -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){ Loading Loading @@ -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; Loading