# before_clientlogin

Client is attempting to log in. You can use this hook to authenticate client against external database/auth service. To do so, after successful auth, simply return client id that HostBill should log in. ie. return 10; //login client with id=10 (hb_client_access.id=10). If client has provided wrong credentials – don’t return any value – this way HostBill will fall-back to its internal authentication methods.

# Hook parameter

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: 3/17/2023, 8:40:19 AM