From 3bc3da02aa08b4cab734d70fd645b252c7e2b03f Mon Sep 17 00:00:00 2001
From: Lukas Kimpel <lukas.kimpel@mni.thm.de>
Date: Mon, 19 Mar 2018 22:37:16 +0100
Subject: [PATCH] Make use of setUser()

---
 src/app/authentication.service.ts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/authentication.service.ts b/src/app/authentication.service.ts
index 2d8b5ccc9..7619a75c7 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;
-- 
GitLab