aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2024-03-12 12:39:29 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2024-03-12 12:39:29 +0530
commit0d7d6eae79dc00500e0988d23094ddaa0d407e07 (patch)
tree62852f69205892c28eba7fdc42a79964328d0bb1
parent88facd78713e594390e653afb3e78b15edd2deab (diff)
fix(autofill): populate passphrase cache on successful decryption
-rw-r--r--app/src/main/java/app/passwordstore/ui/autofill/AutofillDecryptActivity.kt1
1 files changed, 1 insertions, 0 deletions
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 e6e14fcf..fdc797ac 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)
}