Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c29d3896 authored by Pavel Grafov's avatar Pavel Grafov Committed by android-build-merger
Browse files

Merge "Don't attribute incorrect unified challenge attempt to profile." into...

Merge "Don't attribute incorrect unified challenge attempt to profile." into oc-mr1-dev am: c58e47cf
am: 0c81afcd

Change-Id: Id8abc3345bef9c26a5c2c851d876b386f51f3e79
parents d61dede8 0c81afcd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -173,7 +173,9 @@ class LockSettingsShellCommand extends ShellCommand {
                    result = mLockPatternUtils.checkPattern(stringToPattern(mOld), mCurrentUserId);
                }
                if (!result) {
                    if (!mLockPatternUtils.isManagedProfileWithUnifiedChallenge(mCurrentUserId)) {
                        mLockPatternUtils.reportFailedPasswordAttempt(mCurrentUserId);
                    }
                    getOutPrintWriter().println("Old password '" + mOld + "' didn't match");
                }
                return result;