I have this code used to check login details. Specially to check password from user entered data and data in SQL.
if ($request->input('password') != $fromUser[0]->Password) {
$currentStatus = "invalid_password";
}
This code works well in my local machine. Checking case sensitive too. It mean when "$request->input('password')" = "DemoTest" and "$fromUser[0]->Password" = "demotest",
it's not matching and return false ($currentStatus = "invalid_password";).
But when I hosted this on server, this is not working. Not checking case sensitive and if above condition happened, it gives me true.
Why is that ? I hosted this in Windows server. But my local machine is Linux.