Most home cooking is undersalted, and it is rarely because someone forgot. It is because salt gets added at the end, in a pinch, when the dish is already on the plate. Salt earlier and you need less of it. That is the whole idea.
Salt the water for pasta like you mean it, at least a tablespoon per gallon. Salt vegetables before they hit the pan, not after. Salt meat an hour ahead if you have the time; it draws moisture out, dissolves the salt, and pulls it back in, seasoning the meat all the way through.
“Salt earlier and you need less of it. That is the whole idea.”
There is a difference between seasoning and salting. Seasoning is salt plus acid, fat, heat, something savory. If a dish tastes flat, salt is the first thing to check, but acid is the second. A squeeze of lemon can do what another pinch of salt will not.
Taste as you go, with a clean spoon, and get comfortable with what 'almost there' tastes like. Food that is properly salted tastes more like itself, not more like salt. If you can taste the salt as a separate thing, you have gone too far.
Keep a small bowl of kosher salt by the stove. Not a shaker, not a grinder, a bowl you can pinch from. The physical habit matters. When salt is a motion rather than a decision, you will use it at the right time.