1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-04-18 00:07:23 +02:00

Accessibility: index: aria-expanded on dropdown menu buttons, aliases: fieldset on permitted senders, mfa: fix incorrect id's and alt on qr code (#2555)

* accessibility: aria-expandedon dropdowns, fieldset on aliases > permitted senders, mfa label corrections and alt on qr image

* further change
This commit is contained in:
Tim in 't Veld
2026-04-08 15:06:14 +02:00
committed by GitHub
parent 6019c16f71
commit 146ebaa9e9
2 changed files with 29 additions and 9 deletions

View File

@@ -67,12 +67,12 @@ and ensure every administrator account for this control panel does the same.</st
</div>
<div class="form-group">
<label for="otp-label" style="font-weight: normal">3. Optionally, give your device a label so that you can remember what device you set it up on:</label>
<label for="totp-setup-label" style="font-weight: normal">3. Optionally, give your device a label so that you can remember what device you set it up on:</label>
<input type="text" id="totp-setup-label" class="form-control" placeholder="my phone" />
</div>
<div class="form-group">
<label for="otp" style="font-weight: normal">4. Use the app to generate your first six-digit code and enter it here:</label>
<label for="totp-setup-token" style="font-weight: normal">4. Use the app to generate your first six-digit code and enter it here:</label>
<input type="text" id="totp-setup-token" class="form-control" placeholder="6-digit code" />
</div>
@@ -132,6 +132,7 @@ and ensure every administrator account for this control panel does the same.</st
function render_totp_setup(provisioned_totp) {
var img = document.createElement('img');
img.src = "data:image/png;base64," + provisioned_totp.qr_code_base64;
img.alt = "QR code, scan this in your authenticator app"
var code = document.createElement('div');
code.innerHTML = `Secret: ${provisioned_totp.secret}`;