fix(ui): eliminar botones y chips de prueba de credenciales demo en login

This commit is contained in:
2026-10-20 18:28:29 -05:00
parent 46cdf4fd3d
commit 2f7a2d7568
-37
View File
@@ -246,27 +246,6 @@
<i class="fas fa-shield-alt ms-2"></i>
</button>
</form>
<!-- Acceso Rápido / Credenciales Demo Exclusivas para Personal Técnico -->
<div class="mt-3 pt-3 border-top">
<div class="d-flex align-items-center justify-content-between mb-2">
<span class="text-muted fw-semibold" style="font-size: 0.75rem;">
<i class="fas fa-bolt me-1 text-primary"></i> Acceso Rápido Demo:
</span>
<small class="text-muted" style="font-size: 0.70rem;">(1 clic para autocompletar)</small>
</div>
<div class="d-flex flex-wrap gap-2">
<span class="demo-account-chip" onclick="fillStaffCredentials('super@helpdesk.com', '123456')">
<i class="fas fa-crown text-warning me-1"></i> Superadmin
</span>
<span class="demo-account-chip" onclick="fillStaffCredentials('admin@helpdesk.com', '123456')">
<i class="fas fa-user-shield text-info me-1"></i> Admin
</span>
<span class="demo-account-chip" onclick="fillStaffCredentials('agent@helpdesk.com', '123456')">
<i class="fas fa-headset text-primary me-1"></i> Agente
</span>
</div>
</div>
</div>
<!-- Pie de Soporte -->
@@ -320,22 +299,6 @@
}
}
// Autocompletado para el personal técnico
function fillStaffCredentials(email, password) {
const emailInput = document.getElementById('staffEmail');
const passInput = document.getElementById('staffPassword');
if (emailInput && passInput) {
emailInput.value = email;
passInput.value = password;
emailInput.classList.add('is-valid');
passInput.classList.add('is-valid');
setTimeout(() => {
emailInput.classList.remove('is-valid');
passInput.classList.remove('is-valid');
}, 1200);
}
}
// Callback de Google Identity Services
window.handleGoogleCredentialResponse = async function(response) {
if (!response || !response.credential) return;