summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/admin.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/admin.go b/cmd/admin.go
index 524cc30563..3375435749 100644
--- a/cmd/admin.go
+++ b/cmd/admin.go
@@ -632,9 +632,10 @@ func runListUsers(c *cli.Context) error {
}
}
} else {
- fmt.Fprintf(w, "ID\tUsername\tEmail\tIsActive\tIsAdmin\n")
+ twofa := user_model.UserList(users).GetTwoFaStatus()
+ fmt.Fprintf(w, "ID\tUsername\tEmail\tIsActive\tIsAdmin\t2FA\n")
for _, u := range users {
- fmt.Fprintf(w, "%d\t%s\t%s\t%t\t%t\n", u.ID, u.Name, u.Email, u.IsActive, u.IsAdmin)
+ fmt.Fprintf(w, "%d\t%s\t%s\t%t\t%t\t%t\n", u.ID, u.Name, u.Email, u.IsActive, u.IsAdmin, twofa[u.ID])
}
}