angular2-hotkeys beyond this breaks with Angular 8.x
logout now works. Only the clientID does not work as of now
This commit is contained in:
@ -13,13 +13,7 @@ export class LogoutComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.auth.logout().subscribe(
|
||||
(result) => {
|
||||
this.toaster.show('Success', 'Logged Out');
|
||||
this.router.navigateByUrl('/');
|
||||
},
|
||||
(error) => this.toaster.show('Danger', error.error)
|
||||
);
|
||||
this.auth.logout();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user