Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[devicelock] Handle SecurityCodeInHistory after Evaluating. Contribut…
…es to JB#45831

Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
  • Loading branch information
Tomin1 committed May 9, 2019
1 parent 5ddd516 commit a281ed9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nemo-devicelock/host/hostauthenticator.cpp
Expand Up @@ -595,7 +595,11 @@ void HostAuthenticator::setCodeFinished(int result)
} else {
qCDebug(daemon, "Security code disallowed.");
feedback(AuthenticationInput::SecurityCodeInHistory, -1);
enterCodeChangeState(&HostAuthenticationInput::feedback, Authenticator::SecurityCode);
if (m_state == Changing) {
enterCodeChangeState(&HostAuthenticationInput::authenticationResumed, Authenticator::SecurityCode);
} else {
enterCodeChangeState(&HostAuthenticationInput::feedback, Authenticator::SecurityCode);
}
}
break;
case Evaluating:
Expand Down

0 comments on commit a281ed9

Please sign in to comment.