Browse Source
remove home page redirection from logout method
pull/7651/head
Mehmet Erim
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
4 deletions
-
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(); |
|
|
this.authService.initLogin(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
logout() { |
|
|
logout() { |
|
|
this.authService.logout().subscribe(() => { |
|
|
this.authService.logout().subscribe(); |
|
|
this.router.navigate(['/'], { state: { redirectUrl: this.router.url } }); |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|