Jump to content
Announcing Achievements! ×


Help for API and password problem

Go to solution Solved by IPBPowerDev,

Recommended Posts


I try to make an external auth system for an other PHP Script directly linked to my forum but i have an error because when a password contain a special character like ('ç"&éçàç&#.? , it will not send the special character in the API request, here is my api Request for external user creation:

$curl = curl_init();
curl_setopt ($curl, CURLOPT_URL, "https://mydomain.com/api/index.php?/core/members&name=$nameIPS&email=$mailIPS&password=$passIPS&group=$group&validated=$valid");
      curl_setopt_array( $curl, array(
          CURLOPT_USERAGENT        => "MyUserAgent/1.0",
          CURLOPT_USERPWD        => "{$apiKey}:"
      ) );
    curl_setopt($curl, CURLOPT_POST, true);
$response = curl_exec( $curl );												

If my $passIPS contain a special character, there will be a problem and the password entered will not be the same, because there will not be certain characters.

I would like a solution to solve this error and be able to send any type of character in my request.


Regards and Thank in advance for your help.

Link to comment
Share on other sites


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...

Important Information

We use technologies, such as cookies, to customise content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy