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
1 year ago
464,134 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Literally Mongo Sign
1 year ago
587.1K views
0 shares
Recursion
5 years ago
276.2K views
0 shares
The Email Validation Intelligence Curve
1 year ago
449.0K views
0 shares
Free Labor With A Side Of Competition
1 year ago
327.0K views
0 shares
JavaScript: The New Capital Punishment
1 year ago
351.1K views
0 shares
Under Desk Holder for Thunderbolt 4 Dock/Thunderbolt 3 Dock and Power Cable, Under Desk Iron Storage Rack for TS4 / TS3 Plus, No Drill, Easy Install with All Hardware Included
Affiliate
Docking Stations
DUDUXI
A Terrible Dream For Frontend Devs
1 year ago
433.3K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++