Mac keeps asking for the login keychain password

If your Mac keeps asking for the login keychain password

The password of your macOS user account might not match the password of your login keychain. Either create a new login keychain or update it with your new password.

After you or your Mac administrator resets the password of your macOS user account, your Mac might ask you to update your keychain password or enter the password of your login keychain. It might also tell you that the system was unable to unlock your login keychain. That's because your login keychain is still using your old password. 

If you don't know your old password

If you don't know your old password, the solution is to create a new login keychain.

If you know your old password

If you know your old password, use that password to update your existing login keychain:

  1. Open the Keychain Access app, which is in the the Utilities folder of your Applications folder.
  2. From the list of keychains on the left side of the window, select "login." 
  3. From the Edit menu in the menu bar, choose “Change Password for Keychain 'login.'”
  4. Enter the old password of your user account in the Current Password field. This is the password you were using before the password was reset.
  5. Enter the new password of your user account in the New Password field. This is the password you're now using to log in to your Mac. Enter the same password in the Verify field.
  6. Click OK when done, then quit Keychain Access.