I implemented, that the script connects to database and get the guid, username and the hashed password from database and then using "password_verify" function to verify the plain text password from user input with the encrypted password from database.
Then I use
Debug: Print password and password hash echo "<br>Password: $password<br>Password hash: $password_hash";
to print the output to make sure the password is retrieved successfully from database.
The password and username are retrieved successfully, the hash and the plain password are matching the database user and password, but I still get "Invalid username and password"
I already tried to change the password to a new one without any special characters, just using numbers and letters, but it is still not working.
Can someone help?
Thanks for sharing, Rafael!
Working fine for me using Ossn 6.5 plus OssnServices 8.4
Actually, not out of the box on my local machine :)
echo 'Failed to connect to API endpoint';
I got SSL certificate problem: certificate has expired
Yes, yes, it's because of my self-signed certificate...
For good reasons curl is picky about things like that,
but for just testing you may force curl to ignore the invalid certificate with this extra option
CURLOPT_SSL_VERIFYPEER => false,