diff --git a/src/app/authentication.service.ts b/src/app/authentication.service.ts index 2d8b5ccc9a7b95c71c895140fc19ff838c19a72a..7619a75c7e51fab6c85489d11e0b64b9cd11009d 100644 --- a/src/app/authentication.service.ts +++ b/src/app/authentication.service.ts @@ -96,11 +96,11 @@ export class AuthenticationService { checkLogin(clientAuthentication: Observable<ClientAuthentication>, userRole: UserRole): Observable<boolean> { return clientAuthentication.map(result => { if (result) { - this.user = new User( + this.setUser(new User( result.userId, result.loginId, result.authProvider, - result.token, userRole); + result.token, userRole)); return true; } else { return false;