<?php
add_hook('ClientLoginShare', 1, function($vars) {
// Perform custom authentication logic here
// User not found
return false;
// Login as existing WHMCS Client by Email Address
return array(
'email' => 'jr_user@my-site.com',
);
// Create a new client and login
return array(
'create' => true,
'email' => 'jr_user@my-site.com',
'companyname' => 'JR Username',
'password' => 'xxxxxxxx',
);
});
I am assuming that when create=>true, I need to authenticate into my JR hosted db, match the Email and pull the Username, Password. Then pass those variables into the return array (
however, my basic understanding of what I think needs to happen, does not yet translate into code. Would someone have a minute or two to give me a hand? Much appreciated.
Thanks.
--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
updated by @the-patria-company: 06/24/17 06:42:24PM