A WHMCS addon module that lets clients generate a support PIN for quick identification during phone support calls. Admins can look up any client by entering their PIN in the admin dashboard widget or the addon module page.
Original author: Felix Brettnich Maintained by: NodeSpace Technologies, LLC License: GPL-3.0 Compatible with: WHMCS 8.x, WHMCS 9.x (PHP 8+)
- Clients are automatically assigned a PIN on their first visit to the client area
- Dedicated client area page to view and regenerate the PIN without a page reload
- Sidebar widget in the client area displays the current PIN at a glance
- Admin dashboard widget for fast PIN lookup from any page in the admin area
- Admin addon page lists all active PINs from the last 48 hours with links to client profiles
- WHMCS 8.x or 9.x
- PHP 7.4 or higher (PHP 8.x recommended)
- MySQL / MariaDB
-
Upload the module files
Copy the
modules/directory from this repository into the root of your WHMCS installation, merging with the existingmodules/directory. The result should be:<whmcs_root>/modules/addons/supportpin/ -
Activate the module in WHMCS
- Log into the WHMCS admin area
- Go to System Settings > Addon Modules
- Find Support PIN in the list and click Activate
- Click Configure and grant access to any admin roles that should be able to use the module, then click Save Changes
Activation automatically creates the required
mod_supportpindatabase table. -
Verify the hooks file is loading
WHMCS loads
hooks.phpautomatically for active addon modules. No additional configuration is needed beyond activation.
- After logging in, clients will see their Support PIN in the sidebar under "Support Pin"
- Clicking the refresh icon next to the PIN generates a new PIN without reloading the page
- Clients can also navigate to
index.php?m=supportpinfor a full-page view with a prominent PIN display and a regenerate button
Dashboard widget:
- The Support PIN widget appears on the admin home dashboard
- Enter a PIN in the search box and submit to go directly to that client's profile
Addon module page:
- Go to Addons > Support PIN in the admin navigation
- The page displays a table of all clients who have an active PIN updated within the last 48 hours, including their name, PIN, and last updated time
- Click Go to Customer on any row to open that client's profile
- Go to System Settings > Addon Modules and click Deactivate next to Support PIN
- Deactivation drops the
mod_supportpintable and removes all stored PINs - You can then delete the
modules/addons/supportpin/directory from your server
- Fixed critical PHP 8 incompatibility:
strlen()was being called on a LaravelCollectionobject, causing aTypeErrorthat broke PIN creation and collision detection - Fixed fatal error in admin PIN search when an entered PIN does not exist in the database
- Replaced
rand()withrandom_int()for cryptographically secure PIN generation - Added
$_GET['page']whitelist validation to prevent unintended method dispatch - Updated Bootstrap 3
input-group-btnmarkup to Bootstrap 4input-group-appendfor WHMCS 8/9 admin UI compatibility - Fixed missing
</table>closing tag in the admin template
- Initial release