This commit is contained in:
einhornimmond 2021-10-08 10:28:46 +02:00
parent e226a10b4b
commit 17907b23ad

View File

@ -151,7 +151,7 @@ Poco::JSON::Object* JsonUnsecureLogin::handle(Poco::Dynamic::Var params)
}
if (hasElopage) {
auto elopage_buy = Poco::AutoPtr<model::table::ElopageBuy>(new model::table::ElopageBuy);
result->set("hasElopage", elopage_buy->isExistInDB("email", mSession->getNewUser()->getModel()->getEmail()));
result->set("hasElopage", elopage_buy->isExistInDB("email", user_model->getEmail()));
}
return result;
default: