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
450,024 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Usually Come Crawling Back Though
1 year ago
341.9K views
0 shares
Show Me Your Code, Not Your Credentials
1 year ago
308.0K views
0 shares
What Is The Substr Replacement
2 years ago
157.7K views
0 shares
Darth JavaScript: When Math Becomes A String Theory
1 year ago
355.2K views
0 shares
Vintage Metal Sign Morse Code Binary Machine,Text Art Poster Home Wall Decor, Suitable For Walls, Doors, And Fences,Aluminum Printed Plaque 8×12Inch
Affiliate
Wall Art
UTINDK
Who Needs For Loops? Oh Wait, I Do
1 year ago
359.7K views
1 shares
JavaScript: Hell's Original Source Code
1 year ago
376.6K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++