Implementing Activate User

This commit is contained in:
Chris Mann 2023-07-21 15:20:50 +02:00
parent c6a47b3efc
commit ecd866f0d7

View file

@ -2,6 +2,7 @@ package main
import ( import (
"fmt" "fmt"
"log"
"net/http" "net/http"
"regexp" "regexp"
"sort" "sort"
@ -61,6 +62,7 @@ func handleAdminActivateUsers(w http.ResponseWriter, r *http.Request) {
sr, err := login.conn.Search(searchRequest) sr, err := login.conn.Search(searchRequest)
if err != nil { if err != nil {
log.Printf(fmt.Sprintf("65: %v %v", err, sr))
http.Error(w, err.Error(), http.StatusInternalServerError) http.Error(w, err.Error(), http.StatusInternalServerError)
return return
} }