1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

move sync to post login action

This commit is contained in:
Kyle Spearrin
2018-04-25 12:08:23 -04:00
parent d7c6e3c9be
commit e57a38fbb1
3 changed files with 12 additions and 6 deletions

View File

@@ -42,8 +42,11 @@ export class TwoFactorComponent extends BaseTwoFactorComponent {
environmentService: EnvironmentService, private ngZone: NgZone,
private broadcasterService: BroadcasterService, private changeDetectorRef: ChangeDetectorRef) {
super(authService, router, analytics, toasterService, i18nService, apiService,
platformUtilsService, syncService, window, environmentService);
this.successRoute = '/tabs/vault';
platformUtilsService, window, environmentService);
super.onSuccessfullLogin = () => {
return syncService.fullSync(true);
};
super.successRoute = '/tabs/vault';
}
async ngOnInit() {