1
0
mirror of git://f0xx.org/ac/ac-be-auth synced 2026-07-29 05:37:57 +03:00

i18n: wire 2FA challenge QR strings to translation keys

This commit is contained in:
Anton Afanasyeu
2026-07-05 16:57:36 +02:00
parent cd73a2b3bd
commit e8600b33d0

View File

@@ -44,15 +44,15 @@ $twofaQr = AuthTwoFactorPage::qrPayload();
<p class="muted" data-i18n="twofa.hint_scan">Scan the QR code with your phone to approve this sign-in, or enter the 6-digit code below.</p> <p class="muted" data-i18n="twofa.hint_scan">Scan the QR code with your phone to approve this sign-in, or enter the 6-digit code below.</p>
<figure class="twofa-qr-wrap" id="twofa-qr-wrap"> <figure class="twofa-qr-wrap" id="twofa-qr-wrap">
<img src="<?= h((string) $twofaQr['qr_url']) ?>" width="160" height="160" alt="QR code — scan to approve sign-in on this device" class="twofa-qr"> <img src="<?= h((string) $twofaQr['qr_url']) ?>" width="160" height="160" alt="QR code — scan to approve sign-in on this device" class="twofa-qr">
<figcaption class="muted"> <figcaption class="muted" data-i18n="twofa.qr_caption">
Scan to approve on mobile Phone camera → tap link → Approve
<?php if (!empty($twofaQr['short_url'])): ?> <?php if (!empty($twofaQr['short_url'])): ?>
· <a href="<?= h((string) $twofaQr['short_url']) ?>" rel="noopener"><?= h((string) $twofaQr['short_url']) ?></a> · <a href="<?= h((string) $twofaQr['short_url']) ?>" rel="noopener"><?= h((string) $twofaQr['short_url']) ?></a>
<?php endif; ?> <?php endif; ?>
</figcaption> </figcaption>
</figure> </figure>
<div id="twofa-approval-status" class="muted" style="margin-bottom:0.75rem;display:none;"> <div id="twofa-approval-status" class="muted" style="margin-bottom:0.75rem;display:none;" data-i18n="twofa.waiting_approval">
Waiting for mobile approval… Waiting for mobile approval…
</div> </div>
<?php else: ?> <?php else: ?>
<p class="muted" data-i18n="twofa.hint">Enter the 6-digit code from your authenticator app.</p> <p class="muted" data-i18n="twofa.hint">Enter the 6-digit code from your authenticator app.</p>