Loading src/admin.cpp +148 −162 File changed.Preview size limit exceeded, changes collapsed. Show changes src/authdb.cpp +5 −6 Changes for src/authdb.cpp: 5 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -93,12 +93,11 @@ namespace authdb { std::string username,password,pwhash; for(libhttppp::HttpForm::UrlcodedForm::Data *curformdat=form.UrlFormData.getFormData(); curformdat; curformdat=curformdat->nextData()){ if(curformdat->getKey()=="username") username=curformdat->getValue(); else if(curformdat->getKey()=="password") password=curformdat->getValue(); for(const auto &curformdat : form.urlData()){ if(curformdat.key=="username") username=curformdat.value; else if(curformdat.key=="password") password=curformdat.value; } if(!password.empty() && !username.empty()){ Loading Loading
src/authdb.cpp +5 −6 Changes for src/authdb.cpp: 5 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -93,12 +93,11 @@ namespace authdb { std::string username,password,pwhash; for(libhttppp::HttpForm::UrlcodedForm::Data *curformdat=form.UrlFormData.getFormData(); curformdat; curformdat=curformdat->nextData()){ if(curformdat->getKey()=="username") username=curformdat->getValue(); else if(curformdat->getKey()=="password") password=curformdat->getValue(); for(const auto &curformdat : form.urlData()){ if(curformdat.key=="username") username=curformdat.value; else if(curformdat.key=="password") password=curformdat.value; } if(!password.empty() && !username.empty()){ Loading