prolateral Posted September 26, 2009 Share Posted September 26, 2009 Is there any way to automatically set the username in the Module API? As far as I can see, the username and a password need to be typed in manually at order acceptance stage, and there isn't a way of 'automagically' setting the WHMCS username field when the module_CreateAccount function is called. If the product is created automatically, the username is blank and the password is random. Without the Username field, anything put into the module_ClientArea doesn't get displayed, so even if you've created a user based on their email -- it doesn't get shown... Am I missing something? Does anyone else have this issue? Is it by design and I'm not using it right....? -Craig 0 Quote Link to comment Share on other sites More sharing options...
herpherp Posted September 26, 2009 Share Posted September 26, 2009 Username for hosting account or for whmcs client area access? In either case both are automatically created... Login to whmcs client area is created after the order is placed Email addy plus password that was chosen by the purchaser... cPanel username and password are auto generated once the order is "accepted" so if you have it set to auto after payment it would automatically be set,(username would be the first 8 characters of domain name) otherwise it would automatically be set when you accept the order. I am not sure about other control panels.... There are some instances that it would not auto generate, if test is in the username or if the username already exists etc... 0 Quote Link to comment Share on other sites More sharing options...
prolateral Posted September 26, 2009 Author Share Posted September 26, 2009 I'm using the Module Dev Kit - trying to get WHMCS to create an account for a product in our own systems. This will correspond to the Client Area access in a hosted account setup... The module_CreateAccount seems to be the first function that can be called in a custom Module, and it just seems to get an empty username. There doesn't seem to be any other function called before this one... I've set the module product type to 'Other' rather than Hosting/SharedHosting/VPS - will that make a difference? The product doesn't have a domain name - that could be the cause of the problem? -Craig 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.