Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled
Some checks failed
Deploy / deploy (push) Has been cancelled
Full-stack web application for Telegram management - Frontend: Vue 3 + Vben Admin - Backend: NestJS - Features: User management, group broadcast, statistics 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
72
marketing-agent/frontend/public/verify-fix.html
Normal file
72
marketing-agent/frontend/public/verify-fix.html
Normal file
@@ -0,0 +1,72 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Verify Fix</title>
|
||||
<style>
|
||||
body { font-family: Arial, sans-serif; padding: 20px; }
|
||||
.step { margin: 20px 0; padding: 10px; border: 1px solid #ddd; }
|
||||
.success { color: green; }
|
||||
.error { color: red; }
|
||||
button { padding: 10px 20px; margin: 5px; cursor: pointer; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Verify Login Fix</h1>
|
||||
|
||||
<div class="step">
|
||||
<h3>Step 1: Clear Everything</h3>
|
||||
<button onclick="clearAll()">Clear Cache & Reload</button>
|
||||
</div>
|
||||
|
||||
<div class="step">
|
||||
<h3>Step 2: Test Login</h3>
|
||||
<button onclick="testLogin()">Login as Admin</button>
|
||||
<div id="loginResult"></div>
|
||||
</div>
|
||||
|
||||
<div class="step">
|
||||
<h3>Step 3: Navigate to Dashboard</h3>
|
||||
<button onclick="goToDashboard()">Go to Dashboard</button>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function clearAll() {
|
||||
localStorage.clear();
|
||||
sessionStorage.clear();
|
||||
// Force reload to clear any cached modules
|
||||
location.href = location.href + '?t=' + Date.now();
|
||||
}
|
||||
|
||||
async function testLogin() {
|
||||
const resultDiv = document.getElementById('loginResult');
|
||||
try {
|
||||
const response = await fetch('/api/v1/auth/login', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
username: 'admin',
|
||||
password: 'admin123456'
|
||||
})
|
||||
});
|
||||
|
||||
const data = await response.json();
|
||||
if (data.success) {
|
||||
localStorage.setItem('token', data.data.accessToken);
|
||||
localStorage.setItem('refreshToken', data.data.refreshToken);
|
||||
resultDiv.innerHTML = '<p class="success">✓ Login successful! Token saved.</p>';
|
||||
} else {
|
||||
resultDiv.innerHTML = '<p class="error">✗ Login failed: ' + data.error + '</p>';
|
||||
}
|
||||
} catch (error) {
|
||||
resultDiv.innerHTML = '<p class="error">✗ Error: ' + error.message + '</p>';
|
||||
}
|
||||
}
|
||||
|
||||
function goToDashboard() {
|
||||
window.location.href = '/';
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user