1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

clear root scope vault data on logout

This commit is contained in:
Kyle Spearrin 2017-04-14 12:38:44 -04:00
parent 249d00b285
commit 6714390890

View File

@ -1,7 +1,7 @@
angular
.module('bit.services')
.factory('authService', function (cryptoService, apiService, tokenService, $q, jwtHelper) {
.factory('authService', function (cryptoService, apiService, tokenService, $q, jwtHelper, $rootScope) {
var _service = {},
_userProfile = null;
@ -74,6 +74,7 @@ angular
tokenService.clearToken();
tokenService.clearRefreshToken();
cryptoService.clearKeys();
$rootScope.vaultFolders = $rootScope.vaultLogins = null;
_userProfile = null;
};