Skip to content
Snippets Groups Projects
Commit c35d0551 authored by Sébastien Blin's avatar Sébastien Blin Committed by Adrien Béraud
Browse files

server_account_manager: follow API for revoke device

Change-Id: Ia2e52ef9249577a579f7f7fec2f2c8c1f2d1138f
parent 3c6f6f1b
No related branches found
No related tags found
No related merge requests found
......@@ -460,7 +460,7 @@ ServerAccountManager::revokeDevice(const std::string& password,
cb(RevokeDeviceResult::ERROR_CREDENTIALS);
return false;
}
const std::string url = managerHostname_ + PATH_DEVICE + "?deviceId=" + device;
const std::string url = managerHostname_ + PATH_DEVICE + "/" + device;
JAMI_WARN("[Revoke] Revoking device of %s at %s", info_->username.c_str(), url.c_str());
auto request = std::make_shared<Request>(*Manager::instance().ioContext(), url, [cb, onAsync = onAsync_] (Json::Value json, const dht::http::Response& response){
onAsync([=] (AccountManager& accountManager) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment