I absolutely agree. An even better structure wouldn’t have a raw password field on the user object at all.
I absolutely agree. An even better structure wouldn’t have a raw password field on the user object at all.
In addition to the excellent points made by steventhedev and koper:
user.password = await hashPassword(user.password);
Just this one line of code alone is wrong.
Most burgers are fine. Not excellent, not special.
Most common things that ruin a burger for me:
To make a good burger, stay simple. Just get quality ingredients and cook them well. Smash burgers make things easier and go a long way. No kraft plastic-cheese.
Zork zork zork zork zork zork
Where this isn’t true, it’s extremely effective propaganda
Kangaroos don’t exist
I don’t eat lunch
Mostly, they don’t