mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
clear private key from memory only when locked
This commit is contained in:
@@ -68,8 +68,11 @@ function initLockService(self) {
|
||||
}
|
||||
|
||||
LockService.prototype.lock = function () {
|
||||
Q.all([self.cryptoService.clearKey(), self.cryptoService.clearOrgKeys(true)]).then(function () {
|
||||
self.cryptoService.clearPrivateKey();
|
||||
Q.all([
|
||||
self.cryptoService.clearKey(),
|
||||
self.cryptoService.clearOrgKeys(true),
|
||||
self.cryptoService.clearPrivateKey(true)
|
||||
]).then(function () {
|
||||
self.setIcon();
|
||||
self.folderService.clearCache();
|
||||
self.loginService.clearCache();
|
||||
|
||||
Reference in New Issue
Block a user