1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 16:19:46 +02:00

Preview LDAP connection results

This commit is contained in:
sauls8t 2018-09-03 18:19:46 +01:00
parent 1ce7e53398
commit 63b17f9b88
5 changed files with 63 additions and 20 deletions

View file

@ -58,6 +58,7 @@ func (h *Handler) Preview(w http.ResponseWriter, r *http.Request) {
IsError bool `json:"isError"`
Users []user.User `json:"users"`
}
result.Users = []user.User{}
// Read the request.
defer streamutil.Close(r.Body)