Skip to content

Commit 09a811a

Browse files
authored
Fix "Reset 2FA" page layout (hestiacp#3329)
* Fix "Reset 2FA" layout * Tidy spacing
1 parent 689dea8 commit 09a811a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

web/templates/pages/edit_user.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ class="<?= $v_status ?>"
131131
<?php if (!empty($v_twofa)) { ?>
132132
<p class="u-mb10"><?= _("2FA Reset Code:") . " " . $v_twofa ?></p>
133133
<p class="u-mb10"><?= _("Please scan the code below in your 2FA application:") ?></p>
134-
<div><img class="qr-code" src="<?= htmlentities($v_qrcode) ?>" alt=""></div>
134+
<div class="u-mb10">
135+
<img class="qr-code" src="<?= htmlentities($v_qrcode) ?>" alt="<?= _("2FA QR Code") ?>">
136+
</div>
135137
<?php } ?>
136138
</div>
137139
<div x-cloak x-show="!loginDisabled" id="password-options-ip">

web/templates/pages/login/reset2fa.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
2020
<h1 class="login-title">
2121
<?= _("Reset 2FA") ?>
22-
</div>
22+
</h1>
2323
<?php show_error_message($ERROR); ?>
2424
<div class="u-mb10">
2525
<label for="user" class="form-label"><?= _("Username") ?></label>

0 commit comments

Comments
 (0)