diff options
author | Alex Auvolat <alex@adnab.me> | 2020-02-09 19:56:01 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-02-09 19:56:01 +0100 |
commit | f929ca7297905e4233aa32fe2d80dd4cc3fcda30 (patch) | |
tree | 4cf59a71cef9c4126fda38cfa5735bcd8a693575 /admin.go | |
parent | 13222204392009e07382eecb908b7e6e01155ec4 (diff) | |
download | guichet-f929ca7297905e4233aa32fe2d80dd4cc3fcda30.tar.gz guichet-f929ca7297905e4233aa32fe2d80dd4cc3fcda30.zip |
Uniformize templates
Diffstat (limited to 'admin.go')
-rw-r--r-- | admin.go | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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) |