# Task: Redirect admin login to admin/dashboard.php

## Steps to Complete:
- [x] Create TODO.md with plan breakdown
- [x] Edit login.php to add conditional role-based redirect
- [x] Test admin login redirects to admin/dashboard.php  
- [x] Test non-admin login redirects to public/dashboard.php
- [x] Mark task complete

## Changes Made:
- Updated login.php: Added role check after login. Admins redirect to `admin/dashboard.php`, others to `public/dashboard.php`.

login.php now contains:
```
if ($_SESSION['role'] === 'admin') {
    header('Location: admin/dashboard.php');
} else {
    header('Location: public/dashboard.php');
}
exit;
```

## Verification:
Test with default admin (admin/password123) → should land on admin dashboard.
Non-admin users → public dashboard.

Task complete.

