From 2634afb85965099e28d7df6ab46d3505098fbc49 Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Fri, 14 Nov 2025 15:37:00 +0200 Subject: [PATCH] Fix to displays 2FA better --- acl/index.cgi | 8 +++++++- acl/lang/en | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/acl/index.cgi b/acl/index.cgi index 790e60055..a517cf090 100755 --- a/acl/index.cgi +++ b/acl/index.cgi @@ -291,7 +291,13 @@ return &ui_checkbox("d", $user->{'name'}, "", 0). ($ro ? "" : ""). &ui_link("$cgi?$param=".&urlize($user->{'name'}), $user->{'name'}). - ($user->{'twofactor_id'} ? "*" : ""). + ($user->{'twofactor_id'} + ? &ui_tag('sup', '⚷', + { title => $text{'index_twofactor_enabled'}, + class => 'twofactor-enabled-icon', + style => 'font-size: 11px; margin-left: 5px; cursor: default;'. + 'display: inline-block; transform: rotate(90deg);' } ) + : ""). ($ro ? "" : ""). ($lck ? "" : ""); } diff --git a/acl/lang/en b/acl/lang/en index da122b8ca..6dfa3e2a3 100644 --- a/acl/lang/en +++ b/acl/lang/en @@ -6,6 +6,7 @@ index_screate=Create a new safe user. index_convert=Convert Unix To Webmin Users index_cert=Request an SSL Certificate index_twofactor=Two-Factor Authentication +index_twofactor_enabled=Two-factor authentication is enabled for this user index_certmsg=Click this button to request an SSL certificate that will allow you to securely login to Webmin without having to enter a username and password. index_return=user list index_none=None