loadPassphraseForAuthenticatedUser is not needed to

load as an authenticated user; loadPassphrase is
sufficient
This commit is contained in:
Ralph Plawetzki
2024-07-28 17:48:22 +02:00
parent 2194360c8a
commit 2378227756

View File

@@ -28,7 +28,7 @@ public interface MasterkeyFileLoadingModule {
return Optional.empty();
} else {
try {
return vault.getVaultSettings().useTouchID.get() ? Optional.ofNullable(keychain.loadPassphraseForAuthenticatedUser(vault.getId())) : Optional.ofNullable(keychain.loadPassphrase(vault.getId()));
return Optional.ofNullable(keychain.loadPassphrase(vault.getId()));
} catch (KeychainAccessException e) {
LoggerFactory.getLogger(MasterkeyFileLoadingModule.class).error("Failed to load entry from system keychain.", e);
return Optional.empty();