This commit is contained in:
2026-06-14 22:35:27 +02:00
parent 6f3dc0c05a
commit a6fc9f445f
6 changed files with 55 additions and 154 deletions
@@ -82,6 +82,7 @@ export default function UsersSection({ currentUserId }) {
<th>Nom</th>
<th>Email</th>
<th>Email vérifié</th>
<th>2FA</th>
<th>Rôle</th>
<th>Créé le</th>
<th>Actions</th>
@@ -99,6 +100,12 @@ export default function UsersSection({ currentUserId }) {
: <span style={{ fontSize: 11, fontWeight: 600, padding: '2px 8px', borderRadius: 10, background: 'var(--warning-bg, #fffbeb)', color: 'var(--warning-text, #92400e)', border: '1px solid #fcd34d' }}>En attente</span>
}
</td>
<td>
{u.totp_enabled
? <span style={{ fontSize: 11, fontWeight: 600, padding: '2px 8px', borderRadius: 10, background: 'var(--primary-bg, #eff6ff)', color: 'var(--primary, #1e40af)', border: '1px solid #bfdbfe' }}>🔐 Activé</span>
: <span style={{ fontSize: 11, color: 'var(--text-muted)' }}></span>
}
</td>
<td><Badge role={u.role} /></td>
<td style={{ color: 'var(--text-muted)', fontSize: 12 }}>{fmt(u.created_at)}</td>
<td>