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

Clarify 2FA QR scan copy and bump identity/platform-php deps.

Phone-camera approval flow wording; sync deps for shortener QR PNG and secure session cookies.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Anton Afanasyeu
2026-07-08 14:55:52 +02:00
parent 157f9ac311
commit 5b316a5617
2 changed files with 3 additions and 3 deletions

View File

@@ -43,9 +43,9 @@ if (!isset($twofaQr)) {
<form class="login-card" method="post" action="<?= h($auth) ?>/two-factor" id="twofa-form"> <form class="login-card" method="post" action="<?= h($auth) ?>/two-factor" id="twofa-form">
<h1 data-i18n="twofa.title">Two-factor authentication</h1> <h1 data-i18n="twofa.title">Two-factor authentication</h1>
<?php if (is_array($twofaQr) && !empty($twofaQr['qr_url'])): ?> <?php if (is_array($twofaQr) && !empty($twofaQr['qr_url'])): ?>
<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 with your <strong>phone camera</strong> (not Google Authenticator) to approve this sign-in on another device, or enter the 6-digit code from your authenticator app 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 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['short_url'])): ?>