Fix to build HTML nicely

[no-build]
This commit is contained in:
Ilia Ross
2026-03-12 01:06:49 +02:00
parent 1b9b9ae21f
commit dc63aa22a5

View File

@@ -69,11 +69,12 @@ if ($in{'enable'}) {
# Show a test form only when enrolling for yourself
if ($user->{'name'} eq $base_remote_user) {
print &ui_form_start("test_twofactor.cgi");
print $text{'twofactor_testdesc'},"<p>\n";
print "$text{'twofactor_testfield'}&nbsp;\n",
&ui_textbox("test", undef, 12),"\n";
print &ui_tag('p', $text{'twofactor_testdesc'});
print &ui_tag('p', "$text{'twofactor_testfield'}".
"&nbsp;&nbsp;".
&ui_textbox("test", undef, 12));
print &ui_hidden("user", $in{'user'}) if ($in{'user'});
print "<p>\n";
print &ui_tag('p');
print &ui_form_end([ [ undef,
$text{'twofactor_test'} ] ]);
}