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
8 months ago
247,826 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Type Script Safety
8 months ago
218.0K views
0 shares
Hoisting in JavaScript
1 year ago
85.9K views
0 shares
T C39 Team Make1 Sensible Decision Difficulty Impossible
1 year ago
54.9K views
0 shares
The Great Backend-Frontend Blame Transfer
7 months ago
246.2K views
0 shares
Javascript keep 'em dollars rollin
3 years ago
66.9K views
0 shares
Seriously why does this exist
4 years ago
127.2K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp