mirror of
git://f0xx.org/ac/ac-be-auth
synced 2026-07-29 04:58:42 +03:00
i18n: wire 2FA challenge QR strings to translation keys
This commit is contained in:
@@ -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>
|
||||
<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">
|
||||
<figcaption class="muted">
|
||||
Scan to approve on mobile
|
||||
<figcaption class="muted" data-i18n="twofa.qr_caption">
|
||||
Phone camera → tap link → Approve
|
||||
<?php if (!empty($twofaQr['short_url'])): ?>
|
||||
· <a href="<?= h((string) $twofaQr['short_url']) ?>" rel="noopener"><?= h((string) $twofaQr['short_url']) ?></a>
|
||||
<?php endif; ?>
|
||||
</figcaption>
|
||||
</figure>
|
||||
<div id="twofa-approval-status" class="muted" style="margin-bottom:0.75rem;display:none;">
|
||||
⏳ Waiting for mobile approval…
|
||||
<div id="twofa-approval-status" class="muted" style="margin-bottom:0.75rem;display:none;" data-i18n="twofa.waiting_approval">
|
||||
Waiting for mobile approval…
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p class="muted" data-i18n="twofa.hint">Enter the 6-digit code from your authenticator app.</p>
|
||||
|
||||
Reference in New Issue
Block a user