From 280daa7f3f858ecfef9c91ffd5dea1007f021048 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Sun, 19 Mar 2017 11:29:37 +0000
Subject: [PATCH] #3527 fix - Added applications and some minor refactoring

---
 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 e4dac43..a0656a7 100644
--- a/securis/src/main/webapp/src/app/user.service.ts
+++ b/securis/src/main/webapp/src/app/user.service.ts
@@ -28,11 +28,12 @@
     let options = new RequestOptions({ headers: new Headers({ "Content-Type": "application/x-www-form-urlencoded" })});
     return this.http.post('user/login', params.toString(), options)
                     .map((resp) => this.mapLogin(resp))
-                    .catch(this.handleError);
+                    .catch((err) => this.handleError(err));
   }
 
   private mapLogin(res : Response) : string {
     let data = res.json();
+    this.store.set('user_full_name', data.full_name);
     this.store.set('username', data.username);
 		this.store.set('token', data.token);
     return <string>data.token;
@@ -46,7 +47,7 @@
     let option = new RequestOptions({ headers: new Headers({ 'X-SECURIS-TOKEN': token }) });
     return this.http.get('check', option)
                     .map((resp) => this.mapCheck(resp))
-                    .catch(this.handleError);
+                    .catch((err) => this.handleError(err));
   }
 
   private mapCheck(res : Response) : boolean {

--
Gitblit v1.3.2