Factoring the model user and correcting password
This commit is contained in:
parent
0f349fc70d
commit
0a64eda71a
1 changed files with 3 additions and 0 deletions
3
login.go
3
login.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue