Jump to content

Set Username on CreateAccount in Custom Module


prolateral

Recommended Posts

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated