Use .getActiveVault().vaultKey instead of stored password, which can be empty

This commit is contained in:
brantje 2016-10-08 16:17:47 +02:00
parent 57486d1ffa
commit 1adfb1db96
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

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