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

server account manager: use proper callback when missing credentials

Change-Id: I3e13282b1004b50d8a842f1b5ed35fa01c7560a2
parent 3e9a4534
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ ServerAccountManager::initAuthentication(
ctx->onSuccess = std::move(onSuccess);
ctx->onFailure = std::move(onFailure);
if (not ctx->credentials or ctx->credentials->username.empty()) {
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