Open finnhodgkin opened 6 years ago
"You could make just one call to the database that gets the user's username and password at the same time, rather than having two nested calls."
What if we want to know which one failed? Maybe we don't need to know?
dbHash
alet
? You only assign it a value once and only use it in one place, so just declare it there:Also there's some very weird nesting in that callback. Why is there
if(err) {stuff;} else { if(result === false) { ... }
rather than just anelse if