|
|
@@ -404,7 +404,7 @@
|
|
|
case 200:
|
|
|
showSuccess('Código verificado correctamente');
|
|
|
setTimeout(async () => {
|
|
|
- responseJSON = await codeVerify.json();
|
|
|
+ const responseJSON = await codeVerify.json();
|
|
|
changeToken = responseJSON.data.token;
|
|
|
showStep(3);
|
|
|
}, 1000);
|
|
|
@@ -579,15 +579,6 @@
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- // Validar que no sea un PIN muy obvio
|
|
|
- if (newPin === '1234' || newPin === '0000' || newPin === '1111' || newPin === '2222' ||
|
|
|
- newPin === '3333' || newPin === '4444' || newPin === '5555' || newPin === '6666' ||
|
|
|
- newPin === '7777' || newPin === '8888' || newPin === '9999') {
|
|
|
- showError('Por favor elige un PIN más seguro. Evita secuencias obvias.');
|
|
|
- newPinInput.focus();
|
|
|
- newPinInput.select();
|
|
|
- return;
|
|
|
- }
|
|
|
|
|
|
pinSubmitBtn.disabled = true;
|
|
|
pinSubmitBtn.textContent = 'Estableciendo PIN...';
|