Skip to content

Fixed masking username with asterisks when reading credentials#677

Merged
dscho merged 1 commit intogit-for-windows:masterfrom
yaras:fix-git-675
Mar 2, 2016
Merged

Fixed masking username with asterisks when reading credentials#677
dscho merged 1 commit intogit-for-windows:masterfrom
yaras:fix-git-675

Conversation

@yaras
Copy link
Copy Markdown

@yaras yaras commented Feb 29, 2016

Fixes: #675

When reading username PROMPT_ASKPASS is unnecessary.

Signed-off-by: yaras yaras6@gmail.com


After my change, username is asked in command prompt (without asterisks) and user password in Open SSH prompt (with asterisks).

What you think about such solution?

@dscho
Copy link
Copy Markdown
Member

dscho commented Mar 1, 2016

Thank you for your contribution!

I would like to suggest two changes, both with the commit message:

  1. In Git, the commit subject is preferred to be in imperative form, in this case: Do not mask the username when reading credentials
  2. I would really like the commit message to start with a summary of the bug that was fixed, and only at the very end say "This fixes Git GUI: push, username dialog - asterisks when typing username #675." (which would auto-close the ticket when I merge the PR). That way, the commit message is useful even if the reader is stuck in a place without internet connection.

Could you amend the commit and force-push?

When user is asked for credentials there is no need to mask username,
so PROMPT_ASKPASS flag on calling credential_ask_one for login is
unnecessary.

credential_ask_one internally uses git_prompt which in case of given
flag PROMPT_ASKPASS uses masked input method instead of
git_terminal_prompt, which does not mask user input.

This fixes git-for-windows#675

Signed-off-by: yaras <yaras6@gmail.com>
@yaras
Copy link
Copy Markdown
Author

yaras commented Mar 1, 2016

I updated commit message.

Could you check it?

dscho added a commit that referenced this pull request Mar 2, 2016
Fixed masking username with asterisks when reading credentials
@dscho dscho merged commit 47d64e6 into git-for-windows:master Mar 2, 2016
@dscho
Copy link
Copy Markdown
Member

dscho commented Mar 2, 2016

Perfect, thanks!

dscho added a commit to git-for-windows/build-extra that referenced this pull request Mar 2, 2016
We [no longer show asterisks when reading the username for
credentials](git-for-windows/git#677).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
dscho added a commit that referenced this pull request Mar 15, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Mar 18, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Mar 29, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Apr 4, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Apr 30, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request May 20, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jun 7, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jun 9, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jun 9, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jun 9, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jun 9, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jun 14, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 12, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 16, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 23, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 23, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 23, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 27, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 27, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Jul 29, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 2, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 6, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 10, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 10, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 11, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 11, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 12, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 12, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 13, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 13, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 13, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 13, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 15, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 15, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 15, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 15, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 20, 2016
Fixed masking username with asterisks when reading credentials
dscho pushed a commit that referenced this pull request Aug 20, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 22, 2016
Fixed masking username with asterisks when reading credentials
dscho added a commit that referenced this pull request Aug 22, 2016
Fixed masking username with asterisks when reading credentials
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants