🔧 Login Password Fix Tool
This tool will:
1. Check if admin/employee users exist
2. Create/update users with correct passwords
3. Verify password hashes are correct
4. Test login functionality
Step 1: Checking Database Connection
✓ Database connection successful
Step 2: Checking Users Table
✓ Users table exists
Step 3: Fixing Admin Account
✓ Admin user found (ID: 11)
Current role: admin
Current status: active
✓ Admin password updated successfully!
Step 4: Fixing Employee Account
✓ Employee user found (ID: 2)
✓ Employee password updated successfully!
Step 5: Verification
| Account | Email | Password Hash Valid | Role | Status |
|---|
| Admin | admin@dreamcots.in | ✓ Valid | admin | active |
| Employee | employee@dreamcots.in | ✓ Valid | employee | active |
Step 6: Login Credentials
Admin Login:
URL: admin/login.php
Email: admin@dreamcots.in
Password: Admin@2026
Employee Login:
URL: admin/login.php
Email: employee@dreamcots.in
Password: Employee123
Step 7: Testing Login
✓ Admin login test: SUCCESS
✓ Employee login test: SUCCESS
Next Steps
- Try logging in at admin/login.php
- If successful, DELETE this file (fix-login-password.php) for security
- Change your password immediately after first login
⚠️ SECURITY WARNING: Delete this file after fixing the password!
Go to Login Page