mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 14:53:33 +00:00
move sync to post login action
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 31bd1f9423...05e6d2c0f0
@@ -17,9 +17,12 @@ import { LoginComponent as BaseLoginComponent } from 'jslib/angular/components/l
|
|||||||
export class LoginComponent extends BaseLoginComponent {
|
export class LoginComponent extends BaseLoginComponent {
|
||||||
constructor(authService: AuthService, router: Router,
|
constructor(authService: AuthService, router: Router,
|
||||||
analytics: Angulartics2, toasterService: ToasterService,
|
analytics: Angulartics2, toasterService: ToasterService,
|
||||||
i18nService: I18nService, syncService: SyncService) {
|
i18nService: I18nService, private syncService: SyncService) {
|
||||||
super(authService, router, analytics, toasterService, i18nService, syncService);
|
super(authService, router, analytics, toasterService, i18nService);
|
||||||
this.successRoute = '/tabs/vault';
|
super.onSuccessfullLogin = () => {
|
||||||
|
return syncService.fullSync(true);
|
||||||
|
};
|
||||||
|
super.successRoute = '/tabs/vault';
|
||||||
}
|
}
|
||||||
|
|
||||||
settings() {
|
settings() {
|
||||||
|
|||||||
@@ -42,8 +42,11 @@ export class TwoFactorComponent extends BaseTwoFactorComponent {
|
|||||||
environmentService: EnvironmentService, private ngZone: NgZone,
|
environmentService: EnvironmentService, private ngZone: NgZone,
|
||||||
private broadcasterService: BroadcasterService, private changeDetectorRef: ChangeDetectorRef) {
|
private broadcasterService: BroadcasterService, private changeDetectorRef: ChangeDetectorRef) {
|
||||||
super(authService, router, analytics, toasterService, i18nService, apiService,
|
super(authService, router, analytics, toasterService, i18nService, apiService,
|
||||||
platformUtilsService, syncService, window, environmentService);
|
platformUtilsService, window, environmentService);
|
||||||
this.successRoute = '/tabs/vault';
|
super.onSuccessfullLogin = () => {
|
||||||
|
return syncService.fullSync(true);
|
||||||
|
};
|
||||||
|
super.successRoute = '/tabs/vault';
|
||||||
}
|
}
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
|
|||||||
Reference in New Issue
Block a user