mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 12:07:10 +02:00
feat(admin): show and filter users by authentication source (#38900)
This commit is contained in:
1 parent
9b2a3c267b
commit
3d085dbaf1
7 files changed
+102
-9
No files matched your search
@@ -400,7 +400,7 @@ func SearchUsers(ctx *context.APIContext) {
|
||||
// parameters:
|
||||
// - name: source_id
|
||||
// in: query
|
||||
// description: ID of the user's login source to search for
|
||||
// description: ID of the user's login source to search for, 0 means the local users
|
||||
// type: integer
|
||||
// format: int64
|
||||
// - name: login_name
|
||||
@@ -483,7 +483,7 @@ func SearchUsers(ctx *context.APIContext) {
|
||||
Actor: ctx.Doer,
|
||||
Types: []user_model.UserType{user_model.UserTypeIndividual},
|
||||
LoginName: ctx.FormTrim("login_name"),
|
||||
SourceID: ctx.FormInt64("source_id"),
|
||||
SourceID: ctx.FormOptionalInt64("source_id"),
|
||||
Keyword: ctx.FormTrim("q"),
|
||||
Visible: visible,
|
||||
OrderBy: orderBy,
|
||||
|
||||
Reference in new issue
Block a user