diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-11-26 00:40:38 -0800 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-11-26 16:40:38 +0800 |
commit | 716ac1214f14309bf82d664ff8bea90f4b7a40ee (patch) | |
tree | 1b8131488a28097a4e596ed47c07baca621fd850 /routers/admin/users.go | |
parent | 061c501d544002c48fee8b41b5640c0ea1583008 (diff) | |
download | gitea-716ac1214f14309bf82d664ff8bea90f4b7a40ee.tar.gz gitea-716ac1214f14309bf82d664ff8bea90f4b7a40ee.zip |
Enable admin to search by email (#2888)
Diffstat (limited to 'routers/admin/users.go')
-rw-r--r-- | routers/admin/users.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go index c22accc202..1081f3092f 100644 --- a/routers/admin/users.go +++ b/routers/admin/users.go @@ -31,8 +31,9 @@ func Users(ctx *context.Context) { ctx.Data["PageIsAdminUsers"] = true routers.RenderUserSearch(ctx, &models.SearchUserOptions{ - Type: models.UserTypeIndividual, - PageSize: setting.UI.Admin.UserPagingNum, + Type: models.UserTypeIndividual, + PageSize: setting.UI.Admin.UserPagingNum, + SearchByEmail: true, }, tplUsers) } |