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
5 months ago
189,227 views
0 shares

javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Change My Mind
2 months ago
102.6K views
0 shares

๐
1 year ago
93.2K views
0 shares

Looking for my first game development job, and seeing this line upsets me a bit
10 months ago
144.4K views
0 shares

Your Typical Node Project
1 month ago
161.6K views
0 shares

Javascript Is Omnipresent
11 months ago
46.8K views
0 shares

These isEven posts are lacking in whats most important: documentation
3 years ago
79.8K views
0 shares

Loading more content...