Jump to content

Changing cPanel username & Domain from end-user client area?


wirenine

Recommended Posts

Hi

 

I think that allowing them to change the username once the account has been already created, might be tricky but possible. You should play with cPanel API.

 

On the other hand if you want to let them specify their username, it's a lot easier since you can achive this directly with few lines of code and probably an action hook. Anyway in this case it's important that you "blacklist" already used usernames so that 2 clients can't choose the same username on the same server. If you don't want to blacklist them, you could simply add a prefix/suffix with an unique ID so for example let's say that I want "elvis" as username. Product ID on WHMCS is "12" so I'll get "elvis-12" as username. In this way a different user can request "elvis" too.

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