Skip to content

Commit

Permalink
[devicelock] Fix authentiation failure due to a PID mismatch. Contrib…
Browse files Browse the repository at this point in the history
…utes to JB#41686

Call authenticated() directly with the authentication arguments in
the no authentication case rather than relying on member variables
set in startAuthentication() otherwise checks against a 0 PID will
fail.
  • Loading branch information
adenexter committed Apr 19, 2018
1 parent 89bea1b commit fc13d30
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/nemo-devicelock/host/hostauthenticator.cpp
Expand Up @@ -154,7 +154,10 @@ void HostAuthenticator::authenticate(
startAuthentication(AuthenticationInput::Authorize, QVariantMap(), Authenticator::Confirmation);
} else {
qCDebug(daemon, "Authentication requested. Unsecured, authenticating immediately.");
confirmAuthentication(Authenticator::NoAuthentication);
authenticated(authenticateChallengeCode(
challengeCode,
Authenticator::NoAuthentication,
connectionPid(QDBusContext::connection())));
}
break;
case CanAuthenticateSecurityCode:
Expand Down

0 comments on commit fc13d30

Please sign in to comment.