๐Ÿ” Corporate HR Login Debugger

This page helps diagnose why Corporate HR Access login is failing.

๐Ÿ“‹ System Check

โœ“ Database connection: OK โœ“ Schema ensured: OK ๐Ÿ“Š Total companies in database: 0 === ALL COMPANIES IN DATABASE === โš ๏ธ NO COMPANIES FOUND! You need to register a company first.

๐Ÿงช Test Login

โœ… How to Fix

If you see "NO COMPANIES FOUND":

  1. Log into Admin: backend/admin/index.php
  2. Go to Corporate HR Access โ†’ Company PIN Management
  3. Register a company first (or check if any companies exist)

If Password Hash shows "NULL":

  1. Go to Admin โ†’ Corporate HR Access โ†’ Company Password Manager
  2. Click "Fix All Missing Passwords"
  3. This will set passwords to [PREFIX]@123

If Portal Enabled shows "NO":

  1. Edit the company manually in the database
  2. Set hr_portal_enabled = 1

๐Ÿ”— Quick Links

โ†’ Admin Dashboard
โ†’ Company Password Manager
โ†’ Company Debug Info
โ†’ Back to Login