textbox (non clickable)

This commit is contained in:
Pierre Marx
2025-09-04 14:32:16 -04:00
parent 1c4d304a54
commit 5bfdb286db
4 changed files with 115 additions and 2 deletions

View File

@@ -106,6 +106,7 @@ async function handleLogin(e) {
const accessCode = document.getElementById('accessCode').value;
const password = document.getElementById('password').value;
const terminal = document.getElementById('terminal').value;
const forceDisconnect = document.getElementById('forceDisconnect').checked;
const errorDiv = document.getElementById('loginError');
const loginBtn = document.querySelector('#loginForm button[type="submit"]');
@@ -126,7 +127,7 @@ async function handleLogin(e) {
// Désactiver le bouton pendant la connexion
loginBtn.disabled = true;
loginBtn.textContent = 'Connexion en cours...';
loginBtn.textContent = forceDisconnect ? 'Déconnexion forcée et reconnexion...' : 'Connexion en cours...';
errorDiv.textContent = '';
try {
@@ -134,7 +135,8 @@ async function handleLogin(e) {
const credentials = {
email: accessCode, // Utiliser directement le code agent comme email
password: password,
terminal: terminal
terminal: terminal,
forceDisconnect: forceDisconnect // Ajouter l'option de déconnexion forcée
};
// Appeler l'authentification SignalR