credential: fix wrong double password prompt felipec/fc/fixes
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 13 May 2014 14:13:53 +0000 (09:13 -0500)
committerFelipe Contreras <felipe.contreras@gmail.com>
Thu, 19 May 2016 00:01:51 +0000 (19:01 -0500)
commit86d7925cf930c166240801b9deafcd88a02bee64
tree016fd0e2a6673d116ce51ef9c1204bec748b06a9
parent2230cc622eefdd728117b7913bdd9c015147bf74
credential: fix wrong double password prompt

We shouldn't use ssh-askpass to ask for the user, that causes most tools
to ask for "password: username" followed by "password: password".
Totally confusing for the user.

Instead, use a normal prompt to ask for the user.

Reported-by: Chris Warrick <kwpolska@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
credential.c
t/lib-credential.sh
t/t0300-credentials.sh