diff --git a/changelog_unreleased/1540-ldap-login-fails.md b/changelog_unreleased/1540-ldap-login-fails.md new file mode 100644 index 000000000..b10efe314 --- /dev/null +++ b/changelog_unreleased/1540-ldap-login-fails.md @@ -0,0 +1,5 @@ +[bug] piotrek + + Fixed a bug where login was not possible using + the LDAP authentication method. + (Gitlab #1540) \ No newline at end of file diff --git a/webui/src/app/login-screen/login-screen.component.ts b/webui/src/app/login-screen/login-screen.component.ts index 33993adc6..395d22de8 100644 --- a/webui/src/app/login-screen/login-screen.component.ts +++ b/webui/src/app/login-screen/login-screen.component.ts @@ -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.f?.authenticationMethod?.id, this.f?.identifier, this.f?.secret, this.returnUrl) + this.auth.login(this.f.authenticationMethod.id, this.f.identifier, this.f.secret, this.returnUrl) } }