As it could so easily be seen as bashing/trolling I need to preface this question by saying that I'm asking in complete seriousness.
How does one accidentally set the failure mode of any piece of authentication code to escalate privileges instead of denying them? Even when I was first learning to code web apps I never found myself accidentally accepting any password.
It's shocking (to me, at least) because it seems like such a beginner mistake.