Loading src/authdb.cpp +9 −2 Changes for src/authdb.cpp: 9 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ #include "group.h" #include "types.h" #include "hash.h" #include "hash/sha512.h" #include "admin.h" namespace authdb { Loading Loading @@ -474,7 +475,7 @@ int main(int argc, char *argv[]){ class authdb::UserData udat(adminid); std::string username,password; std::string username,password,pwhash; std::cout << "Please enter Admin name: "; std::cin >> username; Loading @@ -482,10 +483,15 @@ int main(int argc, char *argv[]){ udat.setUserName(username.c_str()); std::cout << "Please enter Admin Password"; std::cout << "Please enter Admin Password: "; std::cin >> password; std::cout << std::endl; authdb::sha512 sha; sha.hash(password,pwhash); udat.setPwHash(pwhash.c_str()); user.create(backend,&udat); authdb::Group group; Loading @@ -501,6 +507,7 @@ int main(int argc, char *argv[]){ gdat.addMember(muid); group.create(backend,&gdat); } libhttppp::HttpD httpd( Loading src/user.cpp +1 −1 Changes for src/user.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ namespace authdb { if(!target){ while(curec){ if(curec->Data->type == authdb::UserData && uuid_compare(curec->Data->uuid,target->uuid)==0 && uuid_compare(curec->Data->uuid,dat->Data->uuid)==0 && strcmp(curec->Data->fieldname,varname)==0 ){ Loading Loading
src/authdb.cpp +9 −2 Changes for src/authdb.cpp: 9 added lines, 2 removed lines. Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ #include "group.h" #include "types.h" #include "hash.h" #include "hash/sha512.h" #include "admin.h" namespace authdb { Loading Loading @@ -474,7 +475,7 @@ int main(int argc, char *argv[]){ class authdb::UserData udat(adminid); std::string username,password; std::string username,password,pwhash; std::cout << "Please enter Admin name: "; std::cin >> username; Loading @@ -482,10 +483,15 @@ int main(int argc, char *argv[]){ udat.setUserName(username.c_str()); std::cout << "Please enter Admin Password"; std::cout << "Please enter Admin Password: "; std::cin >> password; std::cout << std::endl; authdb::sha512 sha; sha.hash(password,pwhash); udat.setPwHash(pwhash.c_str()); user.create(backend,&udat); authdb::Group group; Loading @@ -501,6 +507,7 @@ int main(int argc, char *argv[]){ gdat.addMember(muid); group.create(backend,&gdat); } libhttppp::HttpD httpd( Loading
src/user.cpp +1 −1 Changes for src/user.cpp: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -57,7 +57,7 @@ namespace authdb { if(!target){ while(curec){ if(curec->Data->type == authdb::UserData && uuid_compare(curec->Data->uuid,target->uuid)==0 && uuid_compare(curec->Data->uuid,dat->Data->uuid)==0 && strcmp(curec->Data->fieldname,varname)==0 ){ Loading