clear root scope vault data on logout
This commit is contained in:
parent
249d00b285
commit
6714390890
|
@ -1,7 +1,7 @@
|
||||||
angular
|
angular
|
||||||
.module('bit.services')
|
.module('bit.services')
|
||||||
|
|
||||||
.factory('authService', function (cryptoService, apiService, tokenService, $q, jwtHelper) {
|
.factory('authService', function (cryptoService, apiService, tokenService, $q, jwtHelper, $rootScope) {
|
||||||
var _service = {},
|
var _service = {},
|
||||||
_userProfile = null;
|
_userProfile = null;
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ angular
|
||||||
tokenService.clearToken();
|
tokenService.clearToken();
|
||||||
tokenService.clearRefreshToken();
|
tokenService.clearRefreshToken();
|
||||||
cryptoService.clearKeys();
|
cryptoService.clearKeys();
|
||||||
|
$rootScope.vaultFolders = $rootScope.vaultLogins = null;
|
||||||
_userProfile = null;
|
_userProfile = null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue