Skip to content

Commit a8b0c88

Browse files
committed
Fix 2FA message to be more consistent
1 parent 615c9d3 commit a8b0c88

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: edit_2fa.cgi

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if ($user->{'twofactor_provider'}) {
2323
$msg = $text{'2fa_cancel'};
2424
my ($prov) = grep { $_->[0] eq $user->{'twofactor_provider'} } @provs;
2525
print &text('2fa_already',
26-
"<i>$prov->[1]</i>",
26+
$prov->[1],
2727
"<tt>$user->{'twofactor_id'}</tt>"),"<p>\n";
2828
}
2929
else {
@@ -32,7 +32,7 @@ else {
3232
my %miniserv;
3333
&get_miniserv_config(\%miniserv);
3434
my ($prov) = grep { $_->[0] eq $miniserv{'twofactor_provider'} } @provs;
35-
print &text('2fa_desc', "<i>$prov->[1]</i>", $prov->[2]),"<p>\n";
35+
print &text('2fa_desc', $prov->[1], $prov->[2]),"<p>\n";
3636
my $ffunc = "webmin::show_twofactor_form_".
3737
$miniserv{'twofactor_provider'};
3838
if (defined(&$ffunc)) {

Diff for: lang/en

+1-1
Original file line numberDiff line numberDiff line change
@@ -8240,7 +8240,7 @@ deftmplt_tmpltpagefooteraboutcont=Contact
82408240

82418241
2fa_title=Two-Factor Authentication
82428242
2fa_euser=Webmin user does not exist!
8243-
2fa_already=You are already enrolled for two-factor authentication using provider $1 with account ID $2.
8243+
2fa_already=You are already enrolled in two-factor authentication using the $1 provider with account ID $2.
82448244
2fa_desc=This page allows you to enable two-factor authentication for your Virtualmin account using <a href='$2' target=_blank>$1</a>. Once active, an additional authentication token will be required when logging into Virtualmin.
82458245
2fa_ok=Enroll For Two-Factor
82468246
2fa_cancel=Cancel Two-Factor

0 commit comments

Comments
 (0)