Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Vänttinen <sami.vanttinen@protonmail.com>2020-03-21 21:05:24 +0300
committerGitHub <noreply@github.com>2020-03-21 21:05:24 +0300
commit4b5eb73e373bf2777d6500dbcd9279eb5e7f05fd (patch)
treea0ca1899165ad7e6c26114a739d8655c3f35154f
parentb13a0c954a1b162933a1213a5d362834b692ab60 (diff)
parent5a8e27533630b4552aa57ae7b3fe9436848aa07a (diff)
Merge pull request #814 from keepassxreboot/fix/update_time_on_reconnect1.6.0master
Update datetime on reconnect
-rwxr-xr-xkeepassxc-browser/background/keepass.js3
-rwxr-xr-xkeepassxc-browser/manifest.json4
-rw-r--r--keepassxc-browser/options/options.js7
3 files changed, 11 insertions, 3 deletions
diff --git a/keepassxc-browser/background/keepass.js b/keepassxc-browser/background/keepass.js
index 6f08b84..e3b249a 100755
--- a/keepassxc-browser/background/keepass.js
+++ b/keepassxc-browser/background/keepass.js
@@ -839,6 +839,8 @@ keepass.saveKey = function(hash, id, key) {
keepass.keyRing[hash].id = id;
keepass.keyRing[hash].key = key;
keepass.keyRing[hash].hash = hash;
+ keepass.keyRing[hash].created = new Date().valueOf();
+ keepass.keyRing[hash].lastUsed = new Date().valueOf();
}
browser.storage.local.set({ 'keyRing': keepass.keyRing });
};
@@ -849,6 +851,7 @@ keepass.updateLastUsed = function(hash) {
browser.storage.local.set({ 'keyRing': keepass.keyRing });
}
};
+
// Update the databaseHash from legacy hash
keepass.updateDatabaseHash = function(oldHash, newHash) {
if (!oldHash || !newHash || oldHash === newHash) {
diff --git a/keepassxc-browser/manifest.json b/keepassxc-browser/manifest.json
index afa950f..fe2afed 100755
--- a/keepassxc-browser/manifest.json
+++ b/keepassxc-browser/manifest.json
@@ -1,8 +1,8 @@
{
"manifest_version": 2,
"name": "KeePassXC-Browser",
- "version": "1.5.4",
- "version_name": "1.5.4",
+ "version": "1.6.0",
+ "version_name": "1.6.0",
"description": "__MSG_extensionDescription__",
"author": "KeePassXC Team",
"icons": {
diff --git a/keepassxc-browser/options/options.js b/keepassxc-browser/options/options.js
index 51c459b..ccad8eb 100644
--- a/keepassxc-browser/options/options.js
+++ b/keepassxc-browser/options/options.js
@@ -287,7 +287,7 @@ options.initConnectedDatabases = function() {
});
});
- $('#dialogDeleteConnectedDatabase .modal-footer:first button.yes:first').click(function(e) {
+ $('#dialogDeleteConnectedDatabase .modal-footer:first button.yes:first').click(async function(e) {
$('#dialogDeleteConnectedDatabase').modal('hide');
const hash = $('#dialogDeleteConnectedDatabase').data('hash');
@@ -297,6 +297,11 @@ options.initConnectedDatabases = function() {
options.saveKeyRing();
hashList = options.keyRing;
+ // Force reconnect so the extension will disconnect the current database
+ await browser.runtime.sendMessage({ action: 'reconnect' }).catch(err => {
+ console.log(err);
+ });
+
if ($('#tab-connected-databases table tbody:first tr').length > 2) {
$('#tab-connected-databases table tbody:first tr.empty:first').hide();
} else {