fix: sort admin orgs by name (#1536)

* fix: sort admin orgs by name

* handle nil pointer in webauthn methods

* rename
This commit is contained in:
Livio Amstutz
2021-04-07 09:56:45 +02:00
committed by GitHub
parent e4fe097ec4
commit f9286574a9
5 changed files with 20 additions and 7 deletions

View File

@@ -57,6 +57,8 @@ func (key OrgSearchKey) ToColumnName() string {
return OrgKeyOrgID
case usr_model.OrgSearchKeyOrgName:
return OrgKeyOrgName
case usr_model.OrgSearchKeyOrgNameIgnoreCase:
return "LOWER(" + OrgKeyOrgName + ")" //used for lowercase search
case usr_model.OrgSearchKeyResourceOwner:
return OrgKeyResourceOwner
case usr_model.OrgSearchKeyState: