Old password isn't valid - How to change #23506
-
I want to delete my fork of a project as it is now inactive. However, I have enabled 2FA and use a Personal Access Token to push commits from the command-line. When I attempt to change the password while logged in on the web, I get a response back that the old password stored in the macOS Keychain is incorrect. What is the procedure to disable 2FA and reset the CLI token so that operations on repos and login work correctly again? Can I delete the Keychain item and then create a new one when the password is changed? (I am hesitant to log out at this point as this may lock me out of my account.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
chrisfinazzo:
I’m a bit confused what you’re trying to do, because these are separate things. You can’t log in with your PAT, you need your account password and the configured second factor (TOTP, hardware token, or SMS). Does the account password not work like you think it should, or the token? The most important thing to make sure you don’t get locked out: Do you have the recovery codes for your account? You can use those instead of the second factor in case you lose it. |
Beta Was this translation helpful? Give feedback.
-
At this point, I honestly can’t remember what repo and activity caused the PAT to come into existence and it has been some time since I’ve had the need to delete a repo from the web side. The PR associated with the fork was closed over the past week and I did not see the notification until this morning when I was fetching the upstream changes from all of the forked repos I track. I do have recovery codes available - will try this to see if I can reset things and report back. Update: Resolved, thanks. Update #2: Sigh, now I remember. I’m fairly certain the PAT is related to a Indiekit server and associated Twitter application which will syndicate items from one of my repo’s RSS feeds. In this instance, GitHub is a “content store” for the site’s data and deploys to my host (Netlify) are done when I push changes. This is a WIP, so it’s kind of broken at the moment. |
Beta Was this translation helpful? Give feedback.
I’m a bit confused what you’re trying to do, because these are separate things. You can’t log in with your PAT, you need your account password and the configured second factor (TOTP, hardware token, or SMS). Does the account password not work like you think it should, or the token?
The most important thing to make sure you don’t get locked out: Do you have the recovery codes for your account? You can use those instead of the second factor in case you lose it.