From 11995b4d8b0904dfefc23b92e8a8aa453b573cfc Mon Sep 17 00:00:00 2001
From: ornanovitch <ornano@felinn.org>
Date: Sat, 23 Oct 2021 17:31:11 +0200
Subject: [PATCH] PoC user_list

---
 hiboo/user/templates/user_list.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hiboo/user/templates/user_list.html b/hiboo/user/templates/user_list.html
index e68e884..d941ce4 100644
--- a/hiboo/user/templates/user_list.html
+++ b/hiboo/user/templates/user_list.html
@@ -12,6 +12,7 @@
             <tr>
               <th>{% trans %}Username{% endtrans %}</th>
               <th>{% trans %}Created on{% endtrans %}</th>
+              <th>{% trans %}2 factor auth.{% endtrans %}</th>
             </tr>
           </thead>
           <tbody>
@@ -19,6 +20,7 @@
             <tr>
               <td><a href="{{ url_for("user.details", user_uuid=user.uuid) }}">{{ user.username }}</a></td>
               <td>{{ user.created_at.date() }}</td>
+              <td>{% if user.auths["totp"] %}OUI{% else %}NON{% endif %}</td>
             </tr>
             {% endfor %}
           </tbody>
-- 
GitLab