密码更改后无法使用heroku gem cli [英] Unable to use heroku gem cli after password changes
问题描述
我通过网络界面更改了密码。现在我无法运行任何需要验证的命令。密码使用纯ASCII,没有花哨,没有Unicode,奇怪的不可打印的字符等。
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-printable characters, etc.
任何人都有类似的经历以及如何解决。
Anyone had similar experience and how you manage to resolve.
我怎么开始去调试呢?任何详细的cli选项,我可以查看日志?
How do I even begin to go about debug this? Any verbose cli option, log I can review?
% sw_vers
ProductName: Mac OS X
ProductVersion: 10.6.8
BuildVersion: 10K549
% rvm --version
rvm 1.10.3 by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.beginrescueend.com/
% ruby --version
ruby 1.9.3p125 (2012-02-16) [x86_64-darwin10.8.0]
% gem --version
1.8.17
% heroku version
2.25.0
% cat ~/.netrc # is empty
% heroku auth:login
Enter your Heroku credentials.
Email: me@example.com
Password (typing will be hidden):
Authentication failed.
推荐答案
更改密码后,我遇到了同样的问题,我发现这是因为我使用 heroku-accounts 宝石管理多个帐户。
I had this same problem after changing the password, and I found it was because I was managing multiple accounts with the heroku-accounts gem.
我删除了heroku帐户中的帐户设置,然后重新添加它,并使用新的凭据进行验证。事情然后开始像以前一样工作。
I removed the account setup in heroku-accounts and then re-added it, using the new credentials to authenticate. Things then started working as before.
看起来,存储在heroku-accounts gem中的认证细节以某种方式覆盖了通过命令行应用的认证细节。无论如何,这对我有用。
It seems that the authentication details stored in the heroku-accounts gem somehow override those you apply via the command line. Anyway, this worked for me.
这篇关于密码更改后无法使用heroku gem cli的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!