Initial commit: Complete NodeJS-native setup
- Migrated from Python pre-commit to NodeJS-native solution - Reorganized documentation structure - Set up Husky + lint-staged for efficient pre-commit hooks - Fixed Dockerfile healthcheck issue - Added comprehensive documentation index
This commit is contained in:
34
tests/manual/admin-login-debug.js
Normal file
34
tests/manual/admin-login-debug.js
Normal file
@@ -0,0 +1,34 @@
|
||||
// Simple test script to verify admin login functionality
|
||||
// Run this in the browser console to test admin credentials
|
||||
|
||||
async function testAdminLogin() {
|
||||
console.log('🧪 Testing admin login...');
|
||||
|
||||
// Import the services (this won't work directly, but helps us understand the flow)
|
||||
console.log('Admin credentials:');
|
||||
console.log('Email: admin@localhost');
|
||||
console.log('Password: admin123!');
|
||||
|
||||
// Check if admin user exists in localStorage
|
||||
const users = JSON.parse(localStorage.getItem('users') || '[]');
|
||||
console.log('All users in localStorage:', users);
|
||||
|
||||
const adminUser = users.find(u => u.email === 'admin@localhost');
|
||||
console.log('Admin user found:', adminUser);
|
||||
|
||||
if (adminUser) {
|
||||
console.log('Admin user details:');
|
||||
console.log('- Email:', adminUser.email);
|
||||
console.log('- Password:', adminUser.password);
|
||||
console.log('- Role:', adminUser.role);
|
||||
console.log('- Status:', adminUser.status);
|
||||
console.log('- Email Verified:', adminUser.emailVerified);
|
||||
} else {
|
||||
console.log('❌ Admin user not found in localStorage');
|
||||
}
|
||||
}
|
||||
|
||||
// Instructions
|
||||
console.log('Copy and paste this function in browser console:');
|
||||
console.log(testAdminLogin.toString());
|
||||
console.log('Then run: testAdminLogin()');
|
||||
Reference in New Issue
Block a user