From df0e530f27d878d834320d73e7e2013c8b1e2aff Mon Sep 17 00:00:00 2001 From: Maurizio Vitale Date: Wed, 23 May 2018 00:50:24 +0100 Subject: [PATCH] [ADF-2985] Demo shell - Provide an easy way to test the security issue (#3354) * Provide an easy way to test the security issue * use logService --- demo-shell/src/app/components/login/login.component.html | 1 + demo-shell/src/app/components/login/login.component.ts | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/demo-shell/src/app/components/login/login.component.html b/demo-shell/src/app/components/login/login.component.html index 84a2419c9b..9a4ccaeb74 100644 --- a/demo-shell/src/app/components/login/login.component.html +++ b/demo-shell/src/app/components/login/login.component.html @@ -52,6 +52,7 @@ [disableCsrf]="disableCsrf" [showLoginActions]="showFooter" [showRememberMe]="showFooter" + (executeSubmit)="checkForm($event)" copyrightText="{{ 'application.copyright' | adfAppConfig }}" (success)="onLogin($event)" (error)="onError($event)"> diff --git a/demo-shell/src/app/components/login/login.component.ts b/demo-shell/src/app/components/login/login.component.ts index 40d176b55e..60b361ae03 100644 --- a/demo-shell/src/app/components/login/login.component.ts +++ b/demo-shell/src/app/components/login/login.component.ts @@ -118,4 +118,9 @@ export class LoginComponent implements OnInit { this.providers = ''; return this.providers; } + + checkForm(event: any) { + const values = event.values; + this.logService.log(values); + } }