mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-01 19:17:47 +00:00
Adding new registration processing for signup.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user