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
2 months ago
121,567 views
0 shares

javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Yet another javascript quirk
3 years ago
39.4K views
0 shares

Recruiters be like
4 years ago
82.9K views
0 shares

You don't choose Javascript, it chooses you
3 years ago
25.1K views
0 shares

New To Rust: The Borrow Checker Experience
3 months ago
155.1K views
0 shares

The Semicolon Hunt: Sleep Is For The Weak
2 months ago
142.6K views
0 shares

This Is A Certified Fang Moment
3 months ago
153.3K views
0 shares

Loading more content...