mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-10-07 02:09:04 +02:00
fix: make sorting of strings case insensitive
This commit is contained in:
@@ -46,7 +46,7 @@ const (
|
||||
type OidcClient struct {
|
||||
Base
|
||||
|
||||
Name string `sortable:"true"`
|
||||
Name string `sortable:"case-insensitive"`
|
||||
Description string
|
||||
CallbackURLs datatype.StringList
|
||||
LogoutCallbackURLs datatype.StringList
|
||||
|
||||
@@ -14,12 +14,12 @@ import (
|
||||
type User struct {
|
||||
Base
|
||||
|
||||
Username string `sortable:"true"`
|
||||
Email *string `sortable:"true"`
|
||||
Username string `sortable:"case-insensitive"`
|
||||
Email *string `sortable:"case-insensitive"`
|
||||
EmailVerified bool `sortable:"true" filterable:"true"`
|
||||
FirstName string `sortable:"true"`
|
||||
LastName string `sortable:"true"`
|
||||
DisplayName string `sortable:"true"`
|
||||
FirstName string `sortable:"case-insensitive"`
|
||||
LastName string `sortable:"case-insensitive"`
|
||||
DisplayName string `sortable:"case-insensitive"`
|
||||
IsAdmin bool `sortable:"true" filterable:"true"`
|
||||
Locale *string
|
||||
LdapID *string
|
||||
|
||||
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
type UserGroup struct {
|
||||
Base
|
||||
FriendlyName string `sortable:"true"`
|
||||
Name string `sortable:"true"`
|
||||
FriendlyName string `sortable:"case-insensitive"`
|
||||
Name string `sortable:"case-insensitive"`
|
||||
LdapID *string
|
||||
UpdatedAt *datatype.DateTime
|
||||
Users []User `gorm:"many2many:user_groups_users;"`
|
||||
|
||||
Reference in New Issue
Block a user