aboutsummaryrefslogtreecommitdiff
path: root/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'admin.go')
-rw-r--r--admin.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/admin.go b/admin.go
index 60296dc..5a86fe2 100644
--- a/admin.go
+++ b/admin.go
@@ -1,9 +1,9 @@
package main
import (
+ "fmt"
"html/template"
"net/http"
- "fmt"
"sort"
"github.com/go-ldap/ldap/v3"
@@ -31,9 +31,9 @@ func checkAdminLogin(w http.ResponseWriter, r *http.Request) *LoginStatus {
}
type AdminUsersTplData struct {
- Login *LoginStatus
+ Login *LoginStatus
UserNameAttr string
- Users []*ldap.Entry
+ Users []*ldap.Entry
}
func handleAdminUsers(w http.ResponseWriter, r *http.Request) {
@@ -58,9 +58,9 @@ func handleAdminUsers(w http.ResponseWriter, r *http.Request) {
}
data := &AdminUsersTplData{
- Login: login,
+ Login: login,
UserNameAttr: config.UserNameAttr,
- Users: sr.Entries,
+ Users: sr.Entries,
}
sort.Sort(data)