Adding new registration processing for signup.

This commit is contained in:
stephb9959
2022-04-26 15:27:14 -07:00
parent be8281a2f5
commit 078da53234

View File

@@ -124,7 +124,7 @@ namespace OpenWifi {
return true; return true;
} }
bool APConfig::ReplaceVariablesInObject( Poco::JSON::Object::Ptr & Original, Poco::JSON::Object::Ptr & Result) { bool APConfig::ReplaceVariablesInObject( const Poco::JSON::Object::Ptr & Original, Poco::JSON::Object::Ptr & Result) {
// get all the names and expand // get all the names and expand
std::cout << __LINE__ << std::endl; std::cout << __LINE__ << std::endl;
auto Names = Original->getNames(); auto Names = Original->getNames();
@@ -187,19 +187,21 @@ namespace OpenWifi {
auto Obj = element.extract<Poco::JSON::Object::Ptr>(); auto Obj = element.extract<Poco::JSON::Object::Ptr>();
ReplaceVariablesInObject(Obj,Expanded); ReplaceVariablesInObject(Obj,Expanded);
ResultArray->add(Expanded); ResultArray->add(Expanded);
} else if(element.isString()) {
std::cout << "Element type STRING: " << element.type().name() << std::endl;
} else { } else {
std::cout << "Element type UNKNOWN: " << element.type().name() << std::endl; /* std::cout << "Element type UNKNOWN: " << element.type().name() << std::endl;
std::cout << __LINE__ << std::endl; std::cout << __LINE__ << std::endl;
ResultArray->add(element); ResultArray->add(element);
/* */
auto Expanded = Poco::makeShared<Poco::JSON::Object>(); auto Expanded = Poco::makeShared<Poco::JSON::Object>();
auto Obj = element.extract<Poco::JSON::Object::Ptr>(); auto Obj = element.extract<Poco::JSON::Object::Ptr>();
std::cout << __LINE__ << std::endl; std::cout << __LINE__ << std::endl;
ReplaceVariablesInObject(element,Expanded); ReplaceVariablesInObject(Obj,Expanded);
std::cout << __LINE__ << std::endl; std::cout << __LINE__ << std::endl;
ResultArray->add(Expanded); ResultArray->add(Expanded);
std::cout << __LINE__ << std::endl; std::cout << __LINE__ << std::endl;
*/ } }
} }
std::cout << __LINE__ << std::endl; std::cout << __LINE__ << std::endl;
return true; return true;