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
207,332 views
0 shares

javascript-memes, security-memes, authentication-memes, bad-code-memes, technical-debt-memes | ProgrammerHumor.io
More Like This
Learn Css
6 months ago
145.3K views
0 shares

My experience learning and googling javascript
3 years ago
109.5K views
0 shares

Good to see games being ported to HolyC; The Most Powerful Language Ever Created
8 months ago
278.9K views
0 shares

Javascript
1 year ago
108.0K views
0 shares

I want you to build the app with NodeJs using Laravel
3 years ago
93.3K views
0 shares

Office Supplies (affiliate)
Ruby vs. Javascript
2 years ago
54.2K views
0 shares

Loading more content...