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
21 days ago
93,262 views
0 shares

javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Incatption or catception
3 years ago
22.6K views
0 shares

My friend told me to post this here
3 years ago
26.7K views
0 shares

Sure, we programmers spontaneously study programming languages while waiting for flights
1 year ago
26.6K views
0 shares

Udemy Tutorials Supremacy
1 month ago
77.4K views
0 shares

Is it possible to develop this skill?
2 years ago
31.7K views
0 shares

It scares me.
3 years ago
22.8K views
0 shares

Loading more content...