How can I retrieve and iterate over the current usernames?

Discussion in 'Tips/Tricks/Mods' started by CyberMaster, Apr 25, 2023.

  1. CyberMaster

    CyberMaster New Member

    I have my new user html form take in a new users information, passing it to a php script to connect to the ISPConfig server and add the new client.

    How can I retrieve and iterate over the current usernames to check if a username already exists in my php script before adding a new client?

    If I try adding a user with the same user as an already existing username, will it break my setup?
     
  2. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    download the ispconfig tarball and extract it.. in ispconfig3_install/remoting_client you'll find docs and examples for the ispconfig api.
    they should give you details on how to retrieve user info from ispconfig..
    most likely in client_get_by_username.php ;)
     
    Karin Maluleka and Th0m like this.
  3. CyberMaster

    CyberMaster New Member

    Thank You! :)
     

Share This Page