Merge pull request #60 in TEA/dafa-web-monorepo from bugs/TV-397 to develop
Squashed commit of the following:
commit 4213320a89111b3486ff799dbdd9b648a245fc00
Author: arbetsformedlingen_garcn <christian.gardebrink@arbetsformedlingen.se>
Date: Fri Aug 20 09:27:04 2021 +0200
TV-397 tog bort metoder som fanns i två servicar.
commit 01195a0b2b5ea8da234c5e32692b51aff32b23e6
Merge: 6b5b1e9 1e2d925
Author: arbetsformedlingen_garcn <christian.gardebrink@arbetsformedlingen.se>
Date: Fri Aug 20 09:24:01 2021 +0200
Merge branch 'develop-remote' into bugs/TV-397
commit 6b5b1e9fbad2c68ddbd38f0a3c5e183fc6a707c4
Author: arbetsformedlingen_garcn <christian.gardebrink@arbetsformedlingen.se>
Date: Thu Aug 19 15:42:36 2021 +0200
TV-397 fixed bug that occurs if userService is brought in as a dependency before authentication is done.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
|
||||
import { UserService } from '@msfa-services/api/user.service';
|
||||
import { environment } from '@msfa-environment';
|
||||
import { AuthenticationService } from '@msfa-services/api/authentication.service';
|
||||
|
||||
@@ -12,10 +11,9 @@ import { AuthenticationService } from '@msfa-services/api/authentication.service
|
||||
export class LogoutComponent implements OnInit {
|
||||
loginUrl = environment.loginUrl;
|
||||
|
||||
constructor(private authenticationService: AuthenticationService, private userService: UserService) {}
|
||||
constructor(private authenticationService: AuthenticationService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.authenticationService.logout();
|
||||
this.userService.removeSelectedUserOrganization();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user