From 81289842c7a4793dbb3227da2d9b1014105cfd99 Mon Sep 17 00:00:00 2001
From: FORESTIER Fabien <fabien.forestier@soprasteria.com>
Date: Wed, 5 Jun 2019 17:39:57 +0200
Subject: [PATCH] Fix wrong variable path

---
 src/app/user/services/user.service.ts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/app/user/services/user.service.ts b/src/app/user/services/user.service.ts
index 8c0aeab..1385b94 100644
--- a/src/app/user/services/user.service.ts
+++ b/src/app/user/services/user.service.ts
@@ -80,7 +80,7 @@ export class UserService {
       ),
       mergeMap(() => {
         return this._http.post<ILoginResponse>(
-          `${APP_CONFIG.authentication}login/legacy`,
+          `${APP_CONFIG.authentication.url}login/legacy`,
           form,
           { withCredentials: true },
         );
@@ -94,15 +94,15 @@ export class UserService {
   }
 
   logout(): Observable<boolean> {
-    return this._http.get<boolean>(`${APP_CONFIG.authentication}logout`, { withCredentials: true });
+    return this._http.get<boolean>(`${APP_CONFIG.authentication.url}logout`, { withCredentials: true });
   }
 
   getUserInfo(): Observable<IUserInfo> {
-    return this._http.get<IUserInfo>(`${APP_CONFIG.authentication}user`, { withCredentials: true });
+    return this._http.get<IUserInfo>(`${APP_CONFIG.authentication.url}user`, { withCredentials: true });
   }
 
   getPublicKey(): Observable<any> {
-    return this._http.get<any>(`${APP_CONFIG.middlewareLegacyAuth}publicKey`).pipe(
+    return this._http.get<any>(`${APP_CONFIG.middlewareLegacyAuth.url}publicKey`).pipe(
       map(
         (res) => {
           return res.publicKey;
-- 
GitLab