ionic-team / ionic-team/ionic-cli

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

Abierto
#2,843 1 comentario 1 reacción 0 asignados Ver en GitHub
needs investigation
Lenguaje dominante
TypeScript
Estrellas
2k
Forks
682
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**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
```

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Reproduce the behavior through `ionic login` and `ionic ssh setup` by switching between the two accounts described in the steps. Trace how the “Ignore this prompt forever” choice is persisted and detected across accounts, then verify that returning to an account no longer prompts for Ionic Pro connection settings.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
authentication, cli
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.