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
3 months ago
139,485 views
0 shares

javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Depends If You Clone By Reference Or By Value
3 months ago
145.8K views
0 shares

Joke Thread Not Ending
1 year ago
55.4K views
0 shares

Mofo Robinhood Recursion
3 years ago
53.4K views
0 shares

Learning A New Language
3 months ago
117.3K views
0 shares

Everyone Has Their Favorite (And Will Fight To The Death For It)
1 month ago
118.0K views
0 shares

can i go back to javascript
1 year ago
32.3K views
0 shares

Loading more content...