securis/src/main/webapp/src/app/forms/login.form.component.ts
.. .. @@ -4,6 +4,9 @@ 4 4 import { UserService } from '../user.service'; 5 5 import { ToastsManager } from 'ng2-toastr/ng2-toastr'; 6 6 7 +import { IS_DEV_MODE } from '../common/session';8 +9 +7 10 class LoginData { 8 11 username: string; 9 12 password: string; .. .. @@ -19,8 +22,10 @@ 19 22 public constructor(private toaster: ToastsManager, 20 23 private router: Router, 21 24 private userService: UserService) { 25 + if (IS_DEV_MODE) {22 26 this.data.username = 'admin'; 23 27 this.data.password = 'securis'; 28 + }24 29 } 25 30 26 31 public login() {