Browse Source

Merge pull request #7651 from abpframework/mehmet-erim-patch-1

Removed home page redirection from logout method of the current-user.component
pull/7653/head
Mehmet Erim 6 years ago
committed by GitHub
parent
commit
7754283893
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      npm/ng-packs/packages/theme-basic/src/lib/components/nav-items/current-user.component.ts

6
npm/ng-packs/packages/theme-basic/src/lib/components/nav-items/current-user.component.ts

@ -70,9 +70,7 @@ export class CurrentUserComponent {
this.authService.initLogin();
}
logout() {
this.authService.logout().subscribe(() => {
this.router.navigate(['/'], { state: { redirectUrl: this.router.url } });
});
logout() {
this.authService.logout().subscribe();
}
}

Loading…
Cancel
Save