From 42ff83c2d330755b20879bbc5ed4df505b9b1856 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 15 May 2018 23:26:53 -0400 Subject: [PATCH] clear collections on logout --- jslib | 2 +- src/app/app.component.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jslib b/jslib index 9de9c1655c..7112911cb8 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit 9de9c1655c9a325443fdabfc74630f06e20f8d9a +Subproject commit 7112911cb89bcf9bf9b9de32cb05ec2d3f78e3fc diff --git a/src/app/app.component.ts b/src/app/app.component.ts index b9ff95f2db..de4f934386 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -29,6 +29,7 @@ import { BroadcasterService } from 'jslib/angular/services/broadcaster.service'; import { AuthService } from 'jslib/abstractions/auth.service'; import { CipherService } from 'jslib/abstractions/cipher.service'; +import { CollectionService } from 'jslib/abstractions/collection.service'; import { CryptoService } from 'jslib/abstractions/crypto.service'; import { FolderService } from 'jslib/abstractions/folder.service'; import { I18nService } from 'jslib/abstractions/i18n.service'; @@ -81,7 +82,7 @@ export class AppComponent implements OnInit { private platformUtilsService: PlatformUtilsService, private ngZone: NgZone, private lockService: LockService, private storageService: StorageService, private cryptoService: CryptoService, private componentFactoryResolver: ComponentFactoryResolver, - private messagingService: MessagingService) { } + private messagingService: MessagingService, private collectionService: CollectionService) { } ngOnInit() { this.ngZone.runOutsideAngular(() => { @@ -157,6 +158,7 @@ export class AppComponent implements OnInit { this.settingsService.clear(userId), this.cipherService.clear(userId), this.folderService.clear(userId), + this.collectionService.clear(userId), this.passwordGenerationService.clear(), ]);