Implementing Activate User

This commit is contained in:
Chris Mann 2023-07-21 09:15:54 +02:00
parent dbac1238f9
commit c91bb08340

View file

@ -6,6 +6,7 @@ package main
import ( import (
"crypto/tls" "crypto/tls"
"log"
"net/http" "net/http"
"github.com/go-ldap/ldap/v3" "github.com/go-ldap/ldap/v3"
@ -13,7 +14,7 @@ import (
func logRequest(handler http.Handler) http.Handler { func logRequest(handler http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
// log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, r.URL) log.Printf("%s %s %s\n", r.RemoteAddr, r.Method, r.URL)
handler.ServeHTTP(w, r) handler.ServeHTTP(w, r)
}) })
} }