rsanchez
2017-04-17 1dabaade78a0f603224ba30dae5d2386416badf1
securis/src/main/webapp/src/app/forms/login.form.component.ts
....@@ -4,6 +4,9 @@
44 import { UserService } from '../user.service';
55 import { ToastsManager } from 'ng2-toastr/ng2-toastr';
66
7
+import { IS_DEV_MODE } from '../common/session';
8
+
9
+
710 class LoginData {
811 username: string;
912 password: string;
....@@ -19,8 +22,10 @@
1922 public constructor(private toaster: ToastsManager,
2023 private router: Router,
2124 private userService: UserService) {
25
+ if (IS_DEV_MODE) {
2226 this.data.username = 'admin';
2327 this.data.password = 'securis';
28
+ }
2429 }
2530
2631 public login() {