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.