1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

delete organization

This commit is contained in:
Kyle Spearrin
2017-04-11 10:52:16 -04:00
parent cf22ea2b78
commit 5f028ea65f
7 changed files with 106 additions and 1 deletions

View File

@@ -193,6 +193,16 @@ angular
delete $sessionStorage.orgKeys;
};
_service.clearOrgKey = function (orgId) {
if (_orgKeys.hasOwnProperty(orgId)) {
delete _orgKeys[orgId];
}
if ($sessionStorage.orgKeys.hasOwnProperty(orgId)) {
delete $sessionStorage.orgKeys[orgId];
}
};
_service.clearKeys = function () {
_service.clearKey();
_service.clearKeyPair();