forked from Deuxfleurs/guichet
go fmt
This commit is contained in:
parent
01bf4aa522
commit
b1316fb653
1 changed files with 10 additions and 10 deletions
20
directory.go
20
directory.go
|
@ -24,11 +24,11 @@ func handleDirectory(w http.ResponseWriter, r *http.Request) {
|
||||||
}
|
}
|
||||||
|
|
||||||
type SearchResult struct {
|
type SearchResult struct {
|
||||||
DN string
|
DN string
|
||||||
Id string
|
Id string
|
||||||
DisplayName string
|
DisplayName string
|
||||||
Email string
|
Email string
|
||||||
Description string
|
Description string
|
||||||
ProfilePicture string
|
ProfilePicture string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,11 +83,11 @@ func handleDirectorySearch(w http.ResponseWriter, r *http.Request) {
|
||||||
ContainsI(values.GetAttributeValue("displayname"), input) ||
|
ContainsI(values.GetAttributeValue("displayname"), input) ||
|
||||||
ContainsI(values.GetAttributeValue("mail"), input) {
|
ContainsI(values.GetAttributeValue("mail"), input) {
|
||||||
results = append(results, SearchResult{
|
results = append(results, SearchResult{
|
||||||
DN: values.DN,
|
DN: values.DN,
|
||||||
Id: values.GetAttributeValue(config.UserNameAttr),
|
Id: values.GetAttributeValue(config.UserNameAttr),
|
||||||
DisplayName: values.GetAttributeValue("displayname"),
|
DisplayName: values.GetAttributeValue("displayname"),
|
||||||
Email: values.GetAttributeValue("mail"),
|
Email: values.GetAttributeValue("mail"),
|
||||||
Description: values.GetAttributeValue("description"),
|
Description: values.GetAttributeValue("description"),
|
||||||
ProfilePicture: values.GetAttributeValue(FIELD_NAME_PROFILE_PICTURE),
|
ProfilePicture: values.GetAttributeValue(FIELD_NAME_PROFILE_PICTURE),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue