From 4b7c9589928f9a8ab0ca9ce706c167bf8c37e54a Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Mon, 5 Jun 2017 10:38:04 +0100 Subject: [PATCH] remove old 'banned' demo from login screen (#1929) --- .../app/components/login/login-demo.component.css | 5 ----- .../app/components/login/login-demo.component.html | 9 --------- .../app/components/login/login-demo.component.ts | 10 ---------- 3 files changed, 24 deletions(-) diff --git a/demo-shell-ng2/app/components/login/login-demo.component.css b/demo-shell-ng2/app/components/login/login-demo.component.css index 4c8785710e..3357a12025 100644 --- a/demo-shell-ng2/app/components/login/login-demo.component.css +++ b/demo-shell-ng2/app/components/login/login-demo.component.css @@ -15,11 +15,6 @@ z-index: 1; } -.banned { - width: 130px; - margin: 10px; -} - .toggle { width: 120px; margin: 20px; diff --git a/demo-shell-ng2/app/components/login/login-demo.component.html b/demo-shell-ng2/app/components/login/login-demo.component.html index 8c7c83bc86..42862b0a41 100644 --- a/demo-shell-ng2/app/components/login/login-demo.component.html +++ b/demo-shell-ng2/app/components/login/login-demo.component.html @@ -21,10 +21,6 @@ CSRF

-

-
- -

@@ -41,7 +37,6 @@ [providers]="providers" [fieldsValidation]="customValidation" [disableCsrf]="disableCsrf" - (executeSubmit)="validateForm($event)" (onSuccess)="onLogin($event)" (onError)="onError($event)">
@@ -65,9 +60,5 @@ CSRF

-
- - -
diff --git a/demo-shell-ng2/app/components/login/login-demo.component.ts b/demo-shell-ng2/app/components/login/login-demo.component.ts index 0cd4d95941..91e9e16dcb 100644 --- a/demo-shell-ng2/app/components/login/login-demo.component.ts +++ b/demo-shell-ng2/app/components/login/login-demo.component.ts @@ -31,7 +31,6 @@ export class LoginDemoComponent implements OnInit { alfrescologin: any; providers: string = 'ECM'; - blackListUsername: string; customValidation: any; disableCsrf: boolean = false; @@ -114,13 +113,4 @@ export class LoginDemoComponent implements OnInit { this.providers = ''; return this.providers; }; - - validateForm(event: any) { - let values = event.values; - if (values.controls['username'].value === this.blackListUsername) { - this.alfrescologin.addCustomFormError('username', 'This particular username has been blocked'); - event.preventDefault(); - } - } - }