Adds LDAP auth support

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

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

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}

View File

@ -18,7 +18,7 @@ func TestPageInfoGetSort(t *testing.T) {
Direction: "asc",
}
defined := Sort{
Field: "nickname",
Field: "email",
Direction: "desc",
}
// default