From 2762277c60db7df5ad3214b10a0dd93d4f2f1128 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Fri, 10 Mar 2017 08:53:44 +0000
Subject: [PATCH] #3527 feature - Added more features to angular2 version

---
 securis/src/main/webapp/src/app/login.form.component.ts |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/securis/src/main/webapp/src/app/login.form.component.ts b/securis/src/main/webapp/src/app/login.form.component.ts
index 7de13b0..0994685 100644
--- a/securis/src/main/webapp/src/app/login.form.component.ts
+++ b/securis/src/main/webapp/src/app/login.form.component.ts
@@ -19,12 +19,14 @@
   public constructor(private toaster: ToastsManager, 
                       private router: Router, 
                       private userService: UserService) {
+        this.data.username = 'admin';
+        this.data.password = 'securis';
   }
 
   public login() {
     this.userService.login(this.data.username, this.data.password).subscribe(
-      token => this.toaster.info('Hola'),
-      err => this.toaster.error('Hubo un error: ' + err));
+      token => this.router.navigateByUrl("packs"),
+      errMsg => this.toaster.error(errMsg, 'Login error'));
   }
 
   public clear() {

--
Gitblit v1.3.2