A complete authentication system for CodeIgniter 4 with employee management, user groups, and login security.
- Employee information management
- User accounts with role-based permissions
- User groups (Admin, Manager, Employee)
- Login attempts tracking
- Account locking after failed attempts
- Secure password hashing
- Session management
- Bootstrap-responsive UI
- Extract this ZIP file to your CodeIgniter 4 project
- Run database migrations:
php spark migrate - Configure your database in
app/Config/Database.php - Start the server:
php spark serve - Visit
http://localhost:8080/login
- Administrator: Full system access
- Manager: Department manager access
- Employee: Regular employee access
employees- Employee informationuser_groups- Role definitionsuser_accounts- User credentialslogin_attempts- Security tracking
- First, add employees via
/add-employee - Create user accounts via
/register - Login with credentials at
/login - Access dashboard at
/dashboard
- Password hashing with bcrypt
- Account locking after 5 failed attempts
- Login attempt tracking
- CSRF protection
- Session security