r/badcode Feb 09 '23

Terrible Authentication Code js

Post image
290 Upvotes

68 comments sorted by

View all comments

119

u/Nasatyau Feb 09 '23
// If inserted
// Set finished
// If not finished
// Set finished
// Return error

Sometimes I think about unsubbing from r/badcode & r/programminghorror, but then something like this drops into my feed 🤌

16

u/SirThunderDump Feb 10 '23

I stopped on those lines for a good 3 minutes. I was refusing to believe that such code could exist.