Unable to use heroku gem cli after password changes

后端 未结 6 1879
攒了一身酷
攒了一身酷 2021-02-04 02:37

I changed my password via the web interface. And now I can\'t run any command that requires authentication. Password is using plain ASCII, nothing fancy, no Unicode, weird non-p

6条回答
  •  悲哀的现实
    2021-02-04 03:20

    The problem is due to heroku accounts as detailed by @vaughanos in his answer. A quick way to fix this is.

    Check the accounts you have

    heroku accounts

    account1

    *account2

    The * indicates the heroku account being used for the current project. This is the account you have done the password change for using the web interface.

    Change the default account you have setup for this project

    Either change it in .git/config or do a heroku accounts:set account1

    Now do heroku accounts:remove account2

    Now add it back with heroku accounts:add account2. Enter your email and new password. Everything will be setup up for you.

    If it prompts you to update your ~/.ssh/config, do it, but most likely that wouldn't require a change.

提交回复
热议问题