fix user search function, adjust to new fields in db

This commit is contained in:
einhornimmond 2021-05-13 15:30:52 +02:00
parent b4481c1f4e
commit 201590db7d

View File

@ -69,8 +69,8 @@ namespace controller {
using namespace Poco::Data::Keywords; using namespace Poco::Data::Keywords;
Poco::Data::Statement select(session); Poco::Data::Statement select(session);
// typedef Poco::Tuple<std::string, std::string, std::string, Poco::Nullable<Poco::Data::BLOB>, int> UserTuple; // typedef Poco::Tuple<int, std::string, std::string, std::string, std::string, Poco::Nullable<Poco::Data::BLOB>, Poco::DateTime, int, int, int> UserTuple;
select << "SELECT id, first_name, last_name, email, pubkey, created, email_checked, disabled FROM " << db->getTableName(); select << "SELECT id, first_name, last_name, email, username, pubkey, created, email_checked, disabled, group_id FROM " << db->getTableName();
select << " where email_checked = 0 "; select << " where email_checked = 0 ";
select, into(resultFromDB); select, into(resultFromDB);
if (searchString != "") { if (searchString != "") {