Adds LDAP auth support

This commit is contained in:
Jamie Curnow committed 2024-11-02 21:36:07 +10:00
1 parent 8434a2d1fa
commit a277a5d167
54 files changed
+765 -306

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ type Filter struct {
Value []string `json:"value"`
}
// FilterMapValue ...
// FilterMapValue is the structure of a filter map value
type FilterMapValue struct {
Type string
Field string
+1 -1
View File
@@ -15,7 +15,7 @@ type Sort struct {
Direction string `json:"direction"`
}
// GetSort ...
// GetSort is the sort array
func (p *PageInfo) GetSort(def Sort) []Sort {
if p.Sort == nil {
return []Sort{def}
+1 -1
View File
@@ -18,7 +18,7 @@ func TestPageInfoGetSort(t *testing.T) {
Direction: "asc",
}
defined := Sort{
Field: "nickname",
Field: "email",
Direction: "desc",
}
// default