Loading src/admin.cpp +1 −1 Changes for src/admin.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -1529,7 +1529,7 @@ namespace authdb { uuid_t gpoid; std::string gponame; uuid_clear(gpoid); for (libhttppp::HttpForm::MultipartForm::Data* curformdat = curform.MultipartFormData.getFormData(); for (libhttppp::HttpForm::MultipartForm::Data* curformdat = GPOForm.MultipartFormData.getFormData(); curformdat; curformdat = curformdat->nextData()) { for(libhttppp::HttpForm::MultipartForm::Data::ContentDisposition *curdispo=curformdat->getDisposition(); curdispo; curdispo=curdispo->nextContentDisposition() Loading src/authdb.cpp +37 −1 Changes for src/authdb.cpp: 37 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -464,7 +464,43 @@ int main(int argc, char *argv[]){ ); try { if(backend.end()<=sizeof(authdb::AuthHeader)){ authdb::initalized=false; authdb::User user; uuid_t adminid,admingid; uuid_generate(adminid); uuid_generate(admingid); class authdb::UserData udat(adminid); std::string username,password; std::cout << "Please enter Admin name: "; std::cin >> username; std::cout << std::endl; udat.setUserName(username.c_str()); std::cout << "Please enter Admin Password"; std::cin >> password; std::cout << std::endl; user.create(backend,&udat); authdb::Group group; class authdb::GroupData gdat(admingid); gdat.setName("SuperAdmin"); authdb::GroupData::MemberUids muid; muid.count=1; muid.uid=&adminid; gdat.addMember(muid); } libhttppp::HttpD httpd( Loading Loading
src/admin.cpp +1 −1 Changes for src/admin.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -1529,7 +1529,7 @@ namespace authdb { uuid_t gpoid; std::string gponame; uuid_clear(gpoid); for (libhttppp::HttpForm::MultipartForm::Data* curformdat = curform.MultipartFormData.getFormData(); for (libhttppp::HttpForm::MultipartForm::Data* curformdat = GPOForm.MultipartFormData.getFormData(); curformdat; curformdat = curformdat->nextData()) { for(libhttppp::HttpForm::MultipartForm::Data::ContentDisposition *curdispo=curformdat->getDisposition(); curdispo; curdispo=curdispo->nextContentDisposition() Loading
src/authdb.cpp +37 −1 Changes for src/authdb.cpp: 37 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -464,7 +464,43 @@ int main(int argc, char *argv[]){ ); try { if(backend.end()<=sizeof(authdb::AuthHeader)){ authdb::initalized=false; authdb::User user; uuid_t adminid,admingid; uuid_generate(adminid); uuid_generate(admingid); class authdb::UserData udat(adminid); std::string username,password; std::cout << "Please enter Admin name: "; std::cin >> username; std::cout << std::endl; udat.setUserName(username.c_str()); std::cout << "Please enter Admin Password"; std::cin >> password; std::cout << std::endl; user.create(backend,&udat); authdb::Group group; class authdb::GroupData gdat(admingid); gdat.setName("SuperAdmin"); authdb::GroupData::MemberUids muid; muid.count=1; muid.uid=&adminid; gdat.addMember(muid); } libhttppp::HttpD httpd( Loading