rsanchez
2017-03-10 e956347e4c5d434ac898c053addfd7696212f357
#3527 fix - Fixed token management
1 files modified
changed files
securis/src/main/webapp/src/app/user.service.ts patch | view | blame | history
securis/src/main/webapp/src/app/user.service.ts
....@@ -38,7 +38,7 @@
3838 if (!this.existsToken()) {
3939 return Observable.of(false);
4040 }
41
- var token = this.store.get(SECURIS_TOKEN);
41
+ var token = this.store.get("token");
4242 return this.http.get('check', new RequestOptions({ headers: new Headers({ 'X-SECURIS-TOKEN': token }) }))
4343 .map((res: Response) => {
4444 let body = res.json();
....@@ -52,7 +52,8 @@
5252 }
5353
5454 existsToken() : Boolean {
55
- return this.store.get(SECURIS_TOKEN) !== null;
55
+ console.log(this.store.get("token"));
56
+ return this.store.get("token") !== null;
5657 }
5758
5859 logout() : void {