From 849f8f0acbe896cac7e531fee6895442382318cc Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Thu, 13 Apr 2017 09:24:37 +0000
Subject: [PATCH] #0 config - Migrated to jspm and Angular 4.0.2

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

diff --git a/securis/src/main/webapp/src/app/user.service.ts b/securis/src/main/webapp/src/app/user.service.ts
index ee0c0b1..45bb541 100644
--- a/securis/src/main/webapp/src/app/user.service.ts
+++ b/securis/src/main/webapp/src/app/user.service.ts
@@ -6,7 +6,7 @@
 import { Http, RequestOptions, Response, Headers } from '@angular/http';
 import { Observable } from 'rxjs/Observable';
 
-import { LocalStorageService } from 'angular-2-local-storage';
+import { Locker } from 'angular-safeguard';
 
 const SECURIS_TOKEN = "X-SECURIS-TOKEN";
 
@@ -17,7 +17,7 @@
 
   constructor($L: LocaleService,
               private router: Router,
-              private store: LocalStorageService, 
+              private store: Locker, 
               private http: Http) {
     super($L);
   }
@@ -65,7 +65,8 @@
   }
 
   logout() : void {
-    this.store.remove('user', 'token');
+    this.store.remove('user');
+    this.store.remove('token');    
     this.router.navigate(['public/login']);
   }
 

--
Gitblit v1.3.2