I'm making a login script for my site.
It sends a POST
(using curl
) to another server with the user pass etc.
If the info is wrong it returns Bad login
But when I check the reply even if it's wrong it will say the login is successful.
if ($result === "Bad login"){
$password_status = 'Wrong password.';
$error = true;
}
i have also tried strcmp
as well with no success.
Copyright Notice:Content Author:「Antonio」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/7459198/php-string-comparing-with