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

Commit d77c1ab0 authored by Eric Biggers's avatar Eric Biggers Committed by Automerger Merge Worker
Browse files

locksettings: clean up logging of password history updates am: 0889b6d8

parents b45adf13 0889b6d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1718,6 +1718,7 @@ public class LockSettingsService extends ILockSettings.Stub {
        if (passwordHistoryLength == 0) {
            passwordHistory = "";
        } else {
            Slogf.d(TAG, "Adding new password to password history for user %d", userHandle);
            final byte[] hashFactor = getHashFactor(password, userHandle);
            final byte[] salt = getSalt(userHandle).getBytes();
            String hash = password.passwordToHistoryHash(salt, hashFactor);
@@ -1749,7 +1750,6 @@ public class LockSettingsService extends ILockSettings.Stub {
        if (salt == 0) {
            salt = SecureRandomUtils.randomLong();
            setLong(LockPatternUtils.LOCK_PASSWORD_SALT_KEY, salt, userId);
            Slog.v(TAG, "Initialized lock password salt for user: " + userId);
        }
        return Long.toHexString(salt);
    }