aboutsummaryrefslogtreecommitdiff
path: root/admin.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-09 19:56:01 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-09 19:56:01 +0100
commitf929ca7297905e4233aa32fe2d80dd4cc3fcda30 (patch)
tree4cf59a71cef9c4126fda38cfa5735bcd8a693575 /admin.go
parent13222204392009e07382eecb908b7e6e01155ec4 (diff)
downloadguichet-f929ca7297905e4233aa32fe2d80dd4cc3fcda30.tar.gz
guichet-f929ca7297905e4233aa32fe2d80dd4cc3fcda30.zip
Uniformize templates
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)