From 0d7d6eae79dc00500e0988d23094ddaa0d407e07 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 12 Mar 2024 12:39:29 +0530 Subject: [PATCH] fix(autofill): populate passphrase cache on successful decryption --- .../app/passwordstore/ui/autofill/AutofillDecryptActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/app/passwordstore/ui/autofill/AutofillDecryptActivity.kt b/app/src/main/java/app/passwordstore/ui/autofill/AutofillDecryptActivity.kt index e6e14fcf3..fdc797ace 100644 --- a/app/src/main/java/app/passwordstore/ui/autofill/AutofillDecryptActivity.kt +++ b/app/src/main/java/app/passwordstore/ui/autofill/AutofillDecryptActivity.kt @@ -185,6 +185,7 @@ class AutofillDecryptActivity : BasePGPActivity() { } .onSuccess { result -> return runCatching { + passphraseCache.cachePassphrase(this, gpgIdentifiers.first(), password) val entry = passwordEntryFactory.create(result.toByteArray()) AutofillPreferences.credentialsFromStoreEntry(this, file, entry, directoryStructure) }