feat(security): lock biometric settings behind authentication and restrict access to parental panel

This commit is contained in:
unknown
2026-10-08 20:57:20 -06:00
parent 96b1306739
commit cf3e236c69
2 changed files with 38 additions and 23 deletions
+2 -6
View File
@@ -2191,10 +2191,6 @@
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M7 7h.01"/><path d="M17 7h.01"/><path d="M7 17h.01"/><path d="M17 17h.01"/></svg>
<span id="qrBtnText">Mi QR</span>
</button>
<button id="btnQrSecurityLock" class="qr-toggle-btn" style="background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); padding: 7px 9px;" onclick="openQrSecuritySettings()" title="Seguridad y bloqueo biométrico de mi carné QR">
<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
<span id="lblQrSecurityBadge" style="font-size: 0.68rem; font-weight: 800;">Seguridad</span>
</button>
<button id="btnCardTransfer" class="qr-toggle-btn" style="background: rgba(16, 185, 129, 0.25); border-color: rgba(52, 211, 153, 0.4);" onclick="openTransferModal()">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="17 1 21 5 17 9"/><path d="M3 11V9a4 4 0 0 1 4-4h14"/><polyline points="7 23 3 19 7 15"/><path d="M21 13v2a4 4 0 0 1-4 4H3"/></svg>
<span id="transferBtnText">Transferir</span>
@@ -2379,8 +2375,8 @@
</svg>
</div>
<h3 style="font-size: 1.15rem; font-weight: 900; color: var(--text-main, #0f172a); margin: 0 0 6px 0;">Carné QR Protegido</h3>
<p style="font-size: 0.8rem; color: var(--text-muted, #64748b); margin: 0 0 18px 0; line-height: 1.4;">
<h3 id="lblQrPinPromptTitle" style="font-size: 1.15rem; font-weight: 900; color: var(--text-main, #0f172a); margin: 0 0 6px 0;">Carné QR Protegido</h3>
<p id="lblQrPinPromptDesc" style="font-size: 0.8rem; color: var(--text-muted, #64748b); margin: 0 0 18px 0; line-height: 1.4;">
Verifica tu identidad para mostrar tu código de pago en la soda.
</p>