Commit b65e6989 authored by Tomi Leppänen's avatar Tomi Leppänen

Merge branch 'jb45370_fix_checking_code_twice' into 'master'

Do not check code twice. JB#45370

See merge request !38
parents 2b44347e 7d42ec38
......@@ -148,9 +148,10 @@ void HostDeviceLock::enterSecurityCode(const QString &code)
case Idle:
break;
case Authenticating: {
switch (const int result = checkCode(code)) {
switch (const int result = unlockWithCode(code)) {
case Evaluating:
case Success:
unlockFinished(unlockWithCode(code), Authenticator::SecurityCode);
unlockFinished(result, Authenticator::SecurityCode);
break;
case SecurityCodeExpired:
m_state = EnteringNewSecurityCode;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment