Implementing Activate User
This commit is contained in:
parent
c6a47b3efc
commit
ecd866f0d7
1 changed files with 2 additions and 0 deletions
2
admin.go
2
admin.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue