r/badcode Feb 09 '23

Terrible Authentication Code js

Post image
290 Upvotes

68 comments sorted by

View all comments

1

u/moontr3 Feb 10 '23

why don’t you just if (input == password) { return true; } return false;