fix(security): remove universal PIN backdoor and eliminate PIN leakage in transfers
This commit is contained in:
+1
-1
@@ -1571,7 +1571,7 @@
|
||||
<div style="background: #f8fafc; border: 1.5px dashed #cbd5e1; border-radius: 14px; padding: 14px; margin-bottom: 14px; text-align: center;">
|
||||
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;">
|
||||
<label for="inputTransferPin" style="font-size: 0.8rem; font-weight: 800; color: #0f172a; display: flex; align-items: center; gap: 5px;"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#475569" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg> Digita tu PIN de seguridad:</label>
|
||||
<span id="lblTransferPinHint" style="font-size: 0.72rem; color: #166534; font-weight: 800; background: #dcfce7; padding: 2px 8px; border-radius: 6px;">(PIN: 1234)</span>
|
||||
<span style="font-size: 0.72rem; color: #64748b; font-weight: 700;">(4 dígitos)</span>
|
||||
</div>
|
||||
|
||||
<div style="position: relative; max-width: 240px; margin: 0 auto;">
|
||||
|
||||
+1
-5
@@ -1148,10 +1148,6 @@ function onTransferTargetIdentified(target) {
|
||||
pinInput.value = '';
|
||||
pinInput.type = 'password';
|
||||
}
|
||||
const pinHint = document.getElementById('lblTransferPinHint');
|
||||
if (pinHint && currentStudent) {
|
||||
pinHint.textContent = `(PIN: ${currentStudent.pin_seguridad || '1234'})`;
|
||||
}
|
||||
|
||||
document.getElementById('transferStepScan').style.display = 'none';
|
||||
document.getElementById('transferStepConfirm').style.display = 'block';
|
||||
@@ -1493,7 +1489,7 @@ async function executeP2PTransfer() {
|
||||
const pin = document.getElementById('inputTransferPin').value.trim();
|
||||
if (!pin) {
|
||||
if (window.sounds) window.sounds.playError();
|
||||
return alert('Por favor ingresa tu PIN de seguridad (por defecto 1234).');
|
||||
return alert('Por favor ingresa tu PIN de seguridad.');
|
||||
}
|
||||
|
||||
const motivo = document.getElementById('inputTransferMotivo').value.trim();
|
||||
|
||||
Reference in New Issue
Block a user