summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-08-20 03:53:49 +0200
committerGitHub <noreply@github.com>2020-08-20 09:53:49 +0800
commitdcb543ac2a9cccc16dd161c820a4a002e8a83e82 (patch)
tree73673cdcaf43e4c10238740843ae16d592573014 /routers
parenta5440fcb1ef7af8b1b3a828e30dc6af60f0744b2 (diff)
downloadgitea-dcb543ac2a9cccc16dd161c820a4a002e8a83e82.tar.gz
gitea-dcb543ac2a9cccc16dd161c820a4a002e8a83e82.zip
Show 2FA info on Admin Pannel: Users List (#12515)
Diffstat (limited to 'routers')
-rw-r--r--routers/home.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/home.go b/routers/home.go
index ae94207ade..5425670878 100644
--- a/routers/home.go
+++ b/routers/home.go
@@ -233,6 +233,7 @@ func RenderUserSearch(ctx *context.Context, opts *models.SearchUserOptions, tplN
ctx.Data["Keyword"] = opts.Keyword
ctx.Data["Total"] = count
ctx.Data["Users"] = users
+ ctx.Data["UsersTwoFaStatus"] = models.UserList(users).GetTwoFaStatus()
ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail
ctx.Data["IsRepoIndexerEnabled"] = setting.Indexer.RepoIndexerEnabled