aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-08-16 16:28:42 +0200
committerAlex Auvolat <alex@adnab.me>2021-08-16 16:28:42 +0200
commitb1316fb653e2ccd521e7820b6c9d41444e9dac09 (patch)
tree2d20079d2dd9f5700a2dbd90661ac2f54af090fd
parent01bf4aa52279630910ce33d065efcda77e6df7bb (diff)
downloadguichet-b1316fb653e2ccd521e7820b6c9d41444e9dac09.tar.gz
guichet-b1316fb653e2ccd521e7820b6c9d41444e9dac09.zip
go fmt
-rw-r--r--directory.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/directory.go b/directory.go
index f3fa0fe..06afdf2 100644
--- a/directory.go
+++ b/directory.go
@@ -24,11 +24,11 @@ func handleDirectory(w http.ResponseWriter, r *http.Request) {
}
type SearchResult struct {
- DN string
- Id string
- DisplayName string
- Email string
- Description string
+ DN string
+ Id string
+ DisplayName string
+ Email string
+ Description string
ProfilePicture string
}
@@ -83,11 +83,11 @@ func handleDirectorySearch(w http.ResponseWriter, r *http.Request) {
ContainsI(values.GetAttributeValue("displayname"), input) ||
ContainsI(values.GetAttributeValue("mail"), input) {
results = append(results, SearchResult{
- DN: values.DN,
- Id: values.GetAttributeValue(config.UserNameAttr),
- DisplayName: values.GetAttributeValue("displayname"),
- Email: values.GetAttributeValue("mail"),
- Description: values.GetAttributeValue("description"),
+ DN: values.DN,
+ Id: values.GetAttributeValue(config.UserNameAttr),
+ DisplayName: values.GetAttributeValue("displayname"),
+ Email: values.GetAttributeValue("mail"),
+ Description: values.GetAttributeValue("description"),
ProfilePicture: values.GetAttributeValue(FIELD_NAME_PROFILE_PICTURE),
})
}