From df340dce8c6c3621a893dd7d2dd4160ad0541d1b Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Mon, 30 Mar 2026 02:40:01 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20Auto-deploy:=20BotVPS=20atualiza?= =?UTF-8?q?do=20em=2030/03/2026=2002:40:01?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 45 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/templates/index.html b/templates/index.html index 6cb6f93..fe42e94 100644 --- a/templates/index.html +++ b/templates/index.html @@ -582,7 +582,16 @@ } } - #login-overlay { display: none !important; opacity: 0; pointer-events: none; } + #login-overlay { + position: fixed; + inset: 0; + background: #060a12; + z-index: 9999; + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + } .login-card { width: 90%; @@ -650,6 +659,16 @@ +
+ +
@@ -1509,8 +1528,28 @@ window.toggleRecording = toggleRecording; - // Inicia direto - Segurança suspensa - initDashboard(); + function checkAuth() { + const pass = document.getElementById('login-pass').value; + if (pass === '@@Gi05Br;;') { + sessionStorage.setItem('botAuth', 'true'); + document.getElementById('login-overlay').classList.add('hidden'); + initDashboard(); + } else { + document.getElementById('login-error').classList.remove('hidden'); + setTimeout(() => document.getElementById('login-error').classList.add('hidden'), 2000); + } + } + + // Enter key support + document.getElementById('login-pass').addEventListener('keypress', (e) => { + if (e.key === 'Enter') checkAuth(); + }); + + // Skip auth if already logged in via session + if (sessionStorage.getItem('botAuth') === 'true') { + document.getElementById('login-overlay').classList.add('hidden'); + initDashboard(); + }