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
374,000 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Recursion Begins Now
1 year ago
131.9K views
0 shares
Ah yes, #7842f5 will be perfect
4 years ago
141.0K views
0 shares
My favourite Pokémon is python
4 years ago
261.6K views
0 shares
Gods Developer Console
1 year ago
297.4K views
0 shares
Cable Management Under Desk, Znben Detachable Cable Straps Heavy Duty Hook and Loop Cable Ties Reusable 20 Pack
Affiliate
Desk Accessories
Znben
When OOP Meets IRL
8 months ago
391.4K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp