As per this article : macOS Sierra: Reset a 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.
Follow the steps in the article .