ionic-team / ionic-team/ionic-cli

"Ignore this prompt forever" from ionic login is not working

Đang mở
#2,843 1 bình luận 1 reaction 0 người được giao Xem trên GitHub
needs investigation
Ngôn ngữ chính
TypeScript
Star
2k
Fork
682
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Description:**
I have multiple Pro accounts (and projects) and I'm everytime switching among them. This is a bit tedious and I'd like find a way to keep up my session for every project, but that's another thing... The issue here is that the prompt asking me about "How would you like to connect to Ionic Pro?" is ignoring the selected option "Ignore this prompt forever":
```
$ ionic login
[WARN] Detected locally installed Ionic CLI, but it's too old--using global CLI.
[WARN] You are already logged in as user1@example.com! Prompting for new credentials.

? Email: user2@example.com

? Password: [hidden]
Logging you out.
> ionic logout
[OK] You are logged out.
[OK] You are logged in!
> ionic ssh setup
Looks like you haven't configured your SSH settings yet.

? How would you like to connect to Ionic Pro? Ignore this prompt forever
[OK] We won't pester you about SSH settings anymore!
```
It is not detecting that I already have done through this (detection issue might be related to https://github.com/ionic-team/ionic-cli/issues/2829) and it continues asking me for Ionic Pro connecting everytime regardless of the provided answer.

**Steps to Reproduce:**
1. Login with an Ionic Pro account (user1@example.com). Answer "Ignore this prompr forever" to "How would you like to connect to Ionic Pro?".
2. Login with another Ionic Pro account (user2@example.com). Answer "Ignore this prompr forever" to "How would you like to connect to Ionic Pro?".
3. Login back with user1@example.com and it will ask again for Ionic Pro connecting regardless of the selected answer.

**My `ionic info`:**
```
cli packages: (/home/shamank/.nvm/versions/node/v8.2.1/lib/node_modules)

@ionic/cli-utils : 1.15.2
ionic (Ionic CLI) : 3.15.2

global packages:

cordova (Cordova CLI) : 7.1.0

local packages:

@ionic/app-scripts : 3.0.1
Cordova Platforms : android 6.2.3 browser 5.0.1 ios 4.4.0
Ionic Framework : ionic-angular 3.8.0

System:

Android SDK Tools : 26.1.1
Node : v8.2.1
npm : 4.6.1
OS : Linux 3.19

Environment Variables:

ANDROID_HOME : /home/shamank/Android/Sdk

Misc:

backend : pro
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.