Factoring the model user and correcting password

This commit is contained in:
Chris Mann 2023-07-22 07:48:18 +02:00
parent 0f349fc70d
commit 0a64eda71a

View file

@ -6,6 +6,7 @@ package main
import ( import (
"fmt" "fmt"
"log"
"net/http" "net/http"
"strings" "strings"
@ -240,6 +241,8 @@ func doLogin(w http.ResponseWriter, r *http.Request, username string, user_dn st
err := l.Bind(user_dn, password) err := l.Bind(user_dn, password)
if err != nil { if err != nil {
log.Printf("%v", err)
log.Printf("%v", user_dn)
return nil, err return nil, err
} }