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:
@@ -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">
|
<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">
|
<figcaption class="muted" data-i18n="twofa.qr_caption">
|
||||||
Phone camera → tap link → Approve
|
Phone camera → tap link → Approve
|
||||||
<?php if (!empty($twofaQr['short_url'])): ?>
|
<?php if (!empty($twofaQr['scan_url']) || !empty($twofaQr['short_url'])): ?>
|
||||||
· <a href="<?= h((string) $twofaQr['short_url']) ?>" rel="noopener"><?= h((string) $twofaQr['short_url']) ?></a>
|
· <a href="<?= h((string) ($twofaQr['scan_url'] ?? $twofaQr['short_url'])) ?>" rel="noopener"><?= h((string) ($twofaQr['short_url'] ?? '')) ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</figcaption>
|
</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|||||||
Reference in New Issue
Block a user