Skip to content

Commit

Permalink
Update API to use uuid instead of uniqueid for clients
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Jan 26, 2024
1 parent 5cc7fc0 commit 0e1c02b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/confighttp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,8 @@ namespace confighttp {
try {
// TODO: Input Validation
pt::read_json(ss, inputTree);
std::string uniqueid = inputTree.get<std::string>("uniqueid");
outputTree.put("status", nvhttp::unpair_client(uniqueid));
std::string uuid = inputTree.get<std::string>("uuid");
outputTree.put("status", nvhttp::unpair_client(uuid));
}
catch (std::exception &e) {
BOOST_LOG(warning) << "UnpairClient: "sv << e.what();
Expand Down
2 changes: 1 addition & 1 deletion src/nvhttp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ namespace nvhttp {
for (auto &named_cert : client.named_devices) {
pt::ptree named_cert_node;
named_cert_node.put("name"s, named_cert.name);
named_cert_node.put("uniqueID"s, named_cert.uniqueID);
named_cert_node.put("uuid"s, named_cert.uniqueID);
named_cert_nodes.push_back(std::make_pair(""s, named_cert_node));
}

Expand Down

0 comments on commit 0e1c02b

Please sign in to comment.