🔧 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

AccountEmailPassword Hash ValidRoleStatus
Adminadmin@dreamcots.in✓ Validadminactive
Employeeemployee@dreamcots.in✓ Validemployeeactive

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

  1. Try logging in at admin/login.php
  2. If successful, DELETE this file (fix-login-password.php) for security
  3. Change your password immediately after first login

⚠️ SECURITY WARNING: Delete this file after fixing the password!

Go to Login Page