Fixed Change Password Bug

This commit is contained in:
Chris Mann 2023-07-25 14:38:09 +02:00
parent f65319fd93
commit 9be7ac59ee

View file

@ -4,6 +4,7 @@ Handles session login and lougout with HTTP stuff
package main package main
import ( import (
"log"
"net/http" "net/http"
) )
@ -29,6 +30,12 @@ func checkLogin(w http.ResponseWriter, r *http.Request) *LoginStatus {
if l == nil { if l == nil {
return nil return nil
} }
if err != nil {
log.Printf("checkLogin ldapOpen : %v", err)
log.Printf("checkLogin ldapOpen : %v", session)
log.Printf("checkLogin ldapOpen : %v", session.Values)
return nil
}
err = bind(User{ err = bind(User{
DN: login_info.DN, DN: login_info.DN,