From 1adfb1db968b17f4fd8fe559fdccbae518817df4 Mon Sep 17 00:00:00 2001 From: brantje Date: Sat, 8 Oct 2016 16:17:47 +0200 Subject: [PATCH] Use .getActiveVault().vaultKey instead of stored password, which can be empty --- js/app/controllers/edit_credential.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app/controllers/edit_credential.js b/js/app/controllers/edit_credential.js index f31e5fd1..66c32389 100644 --- a/js/app/controllers/edit_credential.js +++ b/js/app/controllers/edit_credential.js @@ -28,7 +28,7 @@ } VaultService.getVault($scope.active_vault).then(function (vault) { - vault.vaultKey = SettingsService.getSetting('defaultVaultPass'); + vault.vaultKey = VaultService.getActiveVault().vaultKey; delete vault.credentials; VaultService.setActiveVault(vault); $scope.pwSettings = VaultService.getVaultSetting('pwSettings',