This commit is contained in:
Chris Mann 2023-07-23 17:08:31 +02:00
parent 7f3439da05
commit 3b619af913

View file

@ -248,6 +248,7 @@ func handleLogin(w http.ResponseWriter, r *http.Request) *LoginInfo {
if err != nil {
data := &LoginFormData{
Username: username,
Login: false,
}
if ldap.IsErrorWithCode(err, ldap.LDAPResultInvalidCredentials) {
data.WrongPass = true