1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

purge state on lock/logout

This commit is contained in:
Kyle Spearrin
2019-07-02 08:18:42 -04:00
parent 5bc1d2c143
commit e063c8b09d
5 changed files with 18 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ import { EnvironmentComponent } from './environment.component';
import { AuthService } from 'jslib/abstractions/auth.service';
import { I18nService } from 'jslib/abstractions/i18n.service';
import { PlatformUtilsService } from 'jslib/abstractions/platformUtils.service';
import { StateService } from 'jslib/abstractions/state.service';
import { StorageService } from 'jslib/abstractions/storage.service';
import { SyncService } from 'jslib/abstractions/sync.service';
@@ -29,8 +30,8 @@ export class LoginComponent extends BaseLoginComponent {
constructor(authService: AuthService, router: Router,
i18nService: I18nService, syncService: SyncService,
private componentFactoryResolver: ComponentFactoryResolver, storageService: StorageService,
platformUtilsService: PlatformUtilsService) {
super(authService, router, platformUtilsService, i18nService, storageService);
platformUtilsService: PlatformUtilsService, stateService: StateService) {
super(authService, router, platformUtilsService, i18nService, storageService, stateService);
super.onSuccessfulLogin = () => {
return syncService.fullSync(true);
};