1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

only clear memory org keys when locked

This commit is contained in:
Kyle Spearrin
2017-04-24 10:53:23 -04:00
parent 8c38480db8
commit 0ea89bf9da
2 changed files with 10 additions and 5 deletions

View File

@@ -756,7 +756,7 @@ function checkLock() {
if (diffSeconds >= lockOptionSeconds) {
// need to lock now
Q.all([cryptoService.clearKey(), cryptoService.clearOrgKeys()]).then(function () {
Q.all([cryptoService.clearKey(), cryptoService.clearOrgKeys(true)]).then(function () {
cryptoService.clearPrivateKey();
setIcon();
folderService.clearCache();