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
159,511 views
0 shares

javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
This Was Personal
7 months ago
82.2K views
0 shares

Wtf Is A Lash Map
1 month ago
200.6K views
0 shares

Should I learn JavaScript or Python?
3 years ago
69.2K views
0 shares

Side Project
5 months ago
177.2K views
0 shares

Is this good enough for some recursion Karma?
2 years ago
43.0K views
0 shares

The Irony Of Naming Conventions
4 months ago
167.0K views
0 shares

Loading more content...