fix: restaurar cambios revertidos por rebase del servidor

- verificar.php: BASE_URL absoluta en fetch, fix paste multi-dígito
- send_otp.php: mensaje SMS correcto sin dos puntos ni expiración
- module.php: Chat Turnero y Verificar Paciente para recepcionistas

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-03 00:13:39 -05:00
co-authored by Claude Sonnet 4.6
parent e1ba78edb8
commit a592ddb30d
3 changed files with 8 additions and 5 deletions
+4 -3
View File
@@ -416,6 +416,7 @@ body::after { width: 400px; height: 400px; bottom: -100px; left: -100px; }
</div>
<script>
const BASE_URL = '<?= rtrim(BASE_URL, '/') ?>';
let _cedula = '';
let _nombre = '';
let _timer = null;
@@ -492,7 +493,7 @@ async function enviarOtp() {
hideError();
try {
const r = await fetch('api/public/send_otp.php', {
const r = await fetch(BASE_URL + '/api/public/send_otp.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ cedula }),
@@ -526,7 +527,7 @@ async function verificarOtp() {
hideError();
try {
const r = await fetch('api/public/verify_otp.php', {
const r = await fetch(BASE_URL + '/api/public/verify_otp.php', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ cedula: _cedula, codigo: getOtp() }),
@@ -558,7 +559,7 @@ async function reenviarOtp() {
clearOtp();
try {
const r = await fetch('api/public/send_otp.php', {
const r = await fetch(BASE_URL + '/api/public/send_otp.php', {
method: 'POST', headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ cedula: _cedula }),
});