Skip to content

ask-password: give a hint to cancel echo - #14800

Merged
yuwata merged 3 commits into
systemd:masterfrom
keszybz:ask-password-echo
Feb 6, 2020
Merged

yuwata merged 3 commits into
systemd:masterfrom
keszybz:ask-password-echo

Conversation

@keszybz

@keszybz keszybz commented Feb 6, 2020

Copy link
Copy Markdown
Member

No description provided.

If we check length of 'a', we must do the same for 'b'.
Comment thread src/test/test-ask-password-api.c Outdated
Comment thread src/test/test-ask-password-api.c Outdated
test-ask-password-api would crash if ^D was pressed.
If think the callers generally expect a non-empty strv as reply. Let's
return an error if we have nothing to return.

Also modernize test-ask-password-api a bit.
For systemd#8495: it is arguably useful to not show the length of the password
in public spaces. It is possible to press TAB or BS to cancel the asterisks,
but this is not very discoverable. Let's make it discoverable by showing
a message (in gray). The message is "erased" after the first character
is entered.
@yuwata

yuwata commented Feb 6, 2020

Copy link
Copy Markdown
Member

LGTM.

@yuwata yuwata added the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Feb 6, 2020
@yuwata
yuwata merged commit 9207625 into systemd:master Feb 6, 2020
@keszybz
keszybz deleted the ask-password-echo branch February 6, 2020 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ask-password good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed

Development

Successfully merging this pull request may close these issues.

2 participants