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
499,579 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
I Just Wanted Simple Cssfor My Tiny Project
2 years ago
254.8K views
0 shares
Good Old Days
1 month ago
47.2M views
0 shares
The Hello World Certification
1 year ago
409.5K views
0 shares
The Abandoned Library Nightmare
1 year ago
503.3K views
1 shares
Coding With Eslint
11 months ago
498.3K views
0 shares
Where Is Pokemon
2 years ago
523.6K views
0 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++