Skip to content
Snippets Groups Projects
Commit 852c9ebe authored by Adrien Béraud's avatar Adrien Béraud
Browse files

archiveAccountManager: fix call to onFailure

Change-Id: I67338b7bad3982d7de5c9cef1f75baa6cd5ab7f6
parent 046ad875
No related branches found
No related tags found
No related merge requests found
......@@ -39,10 +39,10 @@ AccountManager::CertRequest
AccountManager::buildRequest(PrivateKey fDeviceKey)
{
return dht::ThreadPool::computation().get<std::unique_ptr<dht::crypto::CertificateRequest>>(
[fDeviceKey] {
[fDeviceKey = std::move(fDeviceKey)] {
auto request = std::make_unique<dht::crypto::CertificateRequest>();
request->setName("Jami device");
auto deviceKey = fDeviceKey.get();
const auto& deviceKey = fDeviceKey.get();
request->setUID(deviceKey->getPublicKey().getId().toString());
request->sign(*deviceKey);
return request;
......
......@@ -52,7 +52,7 @@ ArchiveAccountManager::initAuthentication(PrivateKey key,
ctx->onFailure = std::move(onFailure);
if (not ctx->credentials) {
onFailure(AuthError::INVALID_ARGUMENTS, "invalid credentials");
ctx->onFailure(AuthError::INVALID_ARGUMENTS, "invalid credentials");
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment