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',