The function loops through ALL USERS to find one with matching credentials instead of using a proper query. The comment is the chef's kiss: "This only works because there are not many users." It's like saying "my car doesn't need brakes because I don't drive fast." Bonus security nightmare: they're storing password hashes but comparing them directly instead of hashing the input password first. This authentication is basically a time bomb wrapped in spaghetti code!
O(n) Authentication: When Your Login System Is Also A Performance Test
7 months ago
236,912 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
I Was Told This Place Was About Programming Humors
5 months ago
233.2K views
0 shares
Every Time
1 year ago
63.6K views
0 shares
They must hate the JS part in JSON
4 years ago
97.9K views
0 shares
Is it possible to develop this skill?
2 years ago
147.1K views
0 shares
Let's see if they sanitise their data
2 years ago
94.3K views
0 shares
Zero Warnings: Corporate Edition
1 month ago
182.5K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp