Fixed Change Password Bug
This commit is contained in:
parent
f65319fd93
commit
9be7ac59ee
1 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue