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
6 months ago
219,334 views
0 shares
javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Always remember to define the base case
3 years ago
73.7K views
0 shares
Always in disguise..
3 years ago
81.9K views
0 shares
Stringly Typed
1 month ago
163.3K views
0 shares
The Two States Of A Developer
14 days ago
165.6K views
1 shares
Npm Install Malware: The Self-Destructive Curiosity
4 months ago
203.1K views
0 shares
Monitor Stands (affiliate)
Product Ownership 101
1 month ago
188.3K views
1 shares
Loading more content...
AI
AWS
Agile
Algorithms
Android
Apple
Bash
C++
Csharp