Only the username form control should be emitted (#3333)

This commit is contained in:
Maurizio Vitale
2018-05-16 15:45:39 +01:00
committed by Eugenio Romano
parent 3f9dc53722
commit 0ebd4c62e3
2 changed files with 13 additions and 2 deletions

View File

@@ -174,8 +174,7 @@ export class LoginComponent implements OnInit {
this.settingsService.csrfDisabled = this.disableCsrf;
this.disableError();
const args = new LoginSubmitEvent(this.form);
const args = new LoginSubmitEvent({controls : { username : this.form.controls.username} });
this.executeSubmit.emit(args);
if (args.defaultPrevented) {