diff --git a/js/templates.js b/js/templates.js index ac0a8f17..403582b8 100644 --- a/js/templates.js +++ b/js/templates.js @@ -63,7 +63,7 @@ angular.module('views/partials/forms/settings/import.html', []).run(['$templateC angular.module('views/partials/forms/settings/sharing.html', []).run(['$templateCache', function($templateCache) { 'use strict'; $templateCache.put('views/partials/forms/settings/sharing.html', - '
'); + '
{{active_vault}}'); }]); angular.module('views/partials/forms/settings/tool.html', []).run(['$templateCache', function($templateCache) { diff --git a/lib/Db/Vault.php b/lib/Db/Vault.php index 67dc7833..fc33d60b 100644 --- a/lib/Db/Vault.php +++ b/lib/Db/Vault.php @@ -62,6 +62,7 @@ class Vault extends Entity implements \JsonSerializable{ 'created' => $this->getCreated(), 'private_sharing_key' => $this->getPrivateSharingKey(), 'public_sharing_key' => $this->getPublicSharingKey(), + 'sharing_keys_generated' => $this->getSharingKeysGenerated(), 'last_access' => $this->getlastAccess(), ]; } diff --git a/lib/Db/VaultMapper.php b/lib/Db/VaultMapper.php index 614914cf..0eadd459 100644 --- a/lib/Db/VaultMapper.php +++ b/lib/Db/VaultMapper.php @@ -33,7 +33,7 @@ class VaultMapper extends Mapper { } public function findVaultsFromUser($userId){ - $sql = 'SELECT id, name, created, guid, last_access FROM `*PREFIX*passman_vaults` ' . + $sql = 'SELECT * FROM `*PREFIX*passman_vaults` ' . 'WHERE `user_id` = ? '; $params = [$userId]; return $this->findEntities($sql, $params); diff --git a/templates/views/partials/forms/settings/sharing.html b/templates/views/partials/forms/settings/sharing.html index 88728811..05a981e7 100644 --- a/templates/views/partials/forms/settings/sharing.html +++ b/templates/views/partials/forms/settings/sharing.html @@ -24,4 +24,5 @@ - \ No newline at end of file + +{{active_vault}} \ No newline at end of file