# Admin Credentials Update

## New Admin Credentials

The admin credentials have been updated to match the PDF documentation:

- **Username:** `admin` or `ADMIN` (case-insensitive)
- **Password:** `aA222222@`
- **Email:** `admin@kkcpbd.com`
- **Role:** Admin
- **Access:** Full system access

## How to Update

1. Navigate to: `https://testkkcp.sheervantage.com/php/update_admin_credentials.php`
2. This will automatically update the admin user in the database
3. After running, you can delete the `update_admin_credentials.php` file for security

## Login

- **URL:** `https://testkkcp.sheervantage.com/php/auth/login.php`
- Enter username: `admin` (or `ADMIN`)
- Enter password: `aA222222@`
- Click "Sign In"

## Changes Made

1. ✅ Updated `CREDENTIALS.txt` with new admin credentials
2. ✅ Created `update_admin_credentials.php` script to update database
3. ✅ Modified `auth/login.php` to accept case-insensitive usernames
4. ✅ Password is properly hashed using `password_hash()`

## Security Notes

- The password `aA222222@` meets security requirements:
  - Contains uppercase letters (A)
  - Contains lowercase letters (a)
  - Contains numbers (222222)
  - Contains special characters (@)
- Username login is now case-insensitive for better user experience
- All passwords are stored as bcrypt hashes in the database
