Reset your Mac login password
Sometimes a user’s login password needs to be reset—for example, when the user has forgotten the login password and can’t use a password hint to remember it.
Reset your login password using your Apple ID
If you associated your user account with your Apple ID, you can use your Apple ID to reset your login password.
Choose Apple menu > Restart, or press the Power button on your computer and then click Restart.
Click your user account, click the question mark