Apply go fmt
This commit is contained in:
parent
fa96e61d75
commit
a85ffdfc80
7
admin.go
7
admin.go
@ -1,12 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"regexp"
|
||||
"strings"
|
||||
"fmt"
|
||||
"html/template"
|
||||
"net/http"
|
||||
"regexp"
|
||||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/go-ldap/ldap/v3"
|
||||
"github.com/gorilla/mux"
|
||||
@ -47,7 +47,6 @@ func (d EntryList) Less(i, j int) bool {
|
||||
return d[i].DN < d[j].DN
|
||||
}
|
||||
|
||||
|
||||
type AdminUsersTplData struct {
|
||||
Login *LoginStatus
|
||||
UserNameAttr string
|
||||
@ -526,7 +525,7 @@ func handleAdminCreate(w http.ResponseWriter, r *http.Request) {
|
||||
if err != nil {
|
||||
data.Error = err.Error()
|
||||
} else {
|
||||
http.Redirect(w, r, "/admin/ldap/" + dn, http.StatusFound)
|
||||
http.Redirect(w, r, "/admin/ldap/"+dn, http.StatusFound)
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user