🚀 Auto-deploy: BotVPS atualizado em 30/03/2026 02:40:01
This commit is contained in:
@@ -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 @@
|
||||
|
||||
<body>
|
||||
<!-- Login Suspenso -->
|
||||
<div id="login-overlay">
|
||||
<div class="login-card fade-in">
|
||||
<div class="login-icon">🔒</div>
|
||||
<h2 class="login-title">BOT VPS TERMINAL</h2>
|
||||
<p class="login-desc">DNS restrito. Digite a senha de acesso.</p>
|
||||
<input type="password" id="login-pass" class="form-input login-input" placeholder="••••••••" autofocus>
|
||||
<button type="button" class="btn btn-primary w-full mt-2" onclick="checkAuth()">ACESSAR HUB</button>
|
||||
<div id="login-error" class="hidden" style="margin-top: 10px; font-size: 0.75rem; color: var(--danger); font-weight: bold; text-transform: uppercase;">Senha Incorreta</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<header>
|
||||
@@ -1509,8 +1528,28 @@
|
||||
|
||||
window.toggleRecording = toggleRecording;
|
||||
|
||||
// Inicia direto - Segurança suspensa
|
||||
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();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user