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

fix(2fa): caption link uses scan URL with src=qr query param

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-11 21:40:01 +02:00
parent 1736c57bf0
commit 86c33124c3

View File

@@ -48,8 +48,8 @@ if (!isset($twofaQr)) {
<img src="<?= h((string) $twofaQr['qr_url']) ?>" width="160" height="160" alt="QR code — scan with phone camera to approve sign-in" class="twofa-qr">
<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 if (!empty($twofaQr['scan_url']) || !empty($twofaQr['short_url'])): ?>
· <a href="<?= h((string) ($twofaQr['scan_url'] ?? $twofaQr['short_url'])) ?>" rel="noopener"><?= h((string) ($twofaQr['short_url'] ?? '')) ?></a>
<?php endif; ?>
</figcaption>
</figure>