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
1 year ago
356,405 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Love my computer science students…When value is less than your current age…
2 years ago
78.1K views
0 shares
The Inevitable Clown Transformation Of New Year's Coding Resolutions
11 months ago
321.2K views
0 shares
When AI Promises To Fix Your Spaghetti Code
10 months ago
382.2K views
0 shares
I Still Prefer VS Code
5 months ago
383.7K views
0 shares
JavaScript s*cks
3 years ago
106.1K views
0 shares
JS Is A Very Respectable Language
4 months ago
231.1K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp