Skip to content

Commit

Permalink
changed when the cached password gets removed
Browse files Browse the repository at this point in the history
  • Loading branch information
JanisEst committed Jun 13, 2016
1 parent 907eb7c commit 9f98024
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QuickUnlockProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,6 @@ public override byte[] GetKey(KeyProviderQueryContext ctx)
return null;
}

//remove the cache entry
unlockCache.Remove(ctx.DatabasePath);

var password = cachePassword.Password.ReadString();
Func<bool> cmp;
if (mode == QuickUnlockWhere.Front)
Expand All @@ -122,6 +119,9 @@ public override byte[] GetKey(KeyProviderQueryContext ctx)

if (!cmp())
{
//remove the cache entry
unlockCache.Remove(ctx.DatabasePath);

//return dummy password to let KeePass fail while loading the database
return new byte[] { 0 };
}
Expand Down

0 comments on commit 9f98024

Please sign in to comment.