From e956347e4c5d434ac898c053addfd7696212f357 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 10 Mar 2017 11:41:18 +0000
Subject: [PATCH] #3527 fix - Fixed token management

---
 securis/src/main/webapp/src/app/user.service.ts |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/securis/src/main/webapp/src/app/user.service.ts b/securis/src/main/webapp/src/app/user.service.ts
index 13466d2..e65e100 100644
--- a/securis/src/main/webapp/src/app/user.service.ts
+++ b/securis/src/main/webapp/src/app/user.service.ts
@@ -38,7 +38,7 @@
     if (!this.existsToken()) {
       return Observable.of(false);
     }
-    var token = this.store.get(SECURIS_TOKEN);
+    var token = this.store.get("token");
     return this.http.get('check', new RequestOptions({ headers: new Headers({ 'X-SECURIS-TOKEN': token }) }))
                     .map((res: Response) => {
                         let body = res.json();
@@ -52,7 +52,8 @@
   }
 
   existsToken() : Boolean {
-    return this.store.get(SECURIS_TOKEN) !== null;
+    console.log(this.store.get("token"));
+    return this.store.get("token") !== null;
   }
 
   logout() : void {

--
Gitblit v1.3.2