# before_clientlogin

Client is attempting to log in.

This hook can be used to authenticate clients against an external database or authentication service.

# Return values:

  • Client ID (integer) - If authentication is successful, return the ID of the client that HostBill should log in (e.g., return 10; to log in client with ID 10 from hb_client_access).
  • 0 - If the system should fall back to default HostBill authentication.
  • -1 - If you want the login to fail immediately with no fallback.

# Hook parameters

An array is passed to hook containing following keys/values:

Key Type Description
email string E-mail address provided in client login form
password string Password client provided in client login form

# Sample hook files

Last Updated: 5/29/2026, 1:41:48 PM