Skip to content

Commit

Permalink
[#1540] fix reactive login form
Browse files Browse the repository at this point in the history
  • Loading branch information
pzadroga committed Oct 24, 2024
1 parent 121b0ff commit d5fd077
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webui/src/app/login-screen/login-screen.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ export class LoginScreenComponent implements OnInit {
}

/**
* Shorthand to get the login form controls.
* Shorthand to get the login form values.
*/
get f() {
return this.loginForm.controls
return this.loginForm.value
}

/**
Expand All @@ -147,7 +147,7 @@ export class LoginScreenComponent implements OnInit {
signIn() {
Object.keys(this.loginForm.controls).forEach((k) => this.loginForm.get(k).markAsDirty())
if (this.loginForm.valid) {
this.auth.login(this.authenticationMethod.id, this.f.identifier.value, this.f.secret.value, this.returnUrl)
this.auth.login(this.f?.authenticationMethod?.id, this.f?.identifier, this.f?.secret, this.returnUrl)
}
}

Expand Down

0 comments on commit d5fd077

Please sign in to comment.