If you set up Apple ID Unlock when you created your user account. This is the easiest way to reset your password.
At your Mac’s lock screen, try entering a password three times. A new option will appear after the third failed attempt.
- Click the arrow next to the Apple ID message.
- Enter your Apple ID.
- Create a new password.
- Click Restart.
- Enter the new user account password to log in.