How to make the password mandatory on invites?

There is no setting that can be used to make the password field manditory when a user accepts an invite. If a user doesn’t set a password when they accept an invite, they will be logged into the site and a ‘Set password’ email will be sent to them right away.

From my point of view, being forced to set a password when accepting an invite would be a more straightforward user experience.