Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@lostpirate it is, in php a single "=" means assign, "==" not case sensitive and not type sensitive, and "===" means exactly the same.
So instead of checking, it was just telling the server that the input is now whatever was in the db... -
If it makes you feel better, my notorious PM started coding. We did something that makes him really happy-> pair programming, but that time he was coding. He did that mistake an if statement with assignation inside.
I made him aware of that and remember in the future as for newers is not easy to spot.
Next day he spent two hours finding an error. Was exactly that
Related Rants
If($password = $password2) {
//login
}
Keep in mind that password is the salted and hashed input and password2 is the Salter and hashed pw in the database...
Who needs passwords am I right?
undefined
wk25
passwords
fail
login