summaryrefslogtreecommitdiff
path: root/completions/fish/swaylock.fish
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2024-09-17 12:57:17 -0400
committerSimon Ser <contact@emersion.fr>2025-03-16 16:13:09 +0100
commit65f3eb349259d571397e5ab769dc5f524966c212 (patch)
treec87b17a201c506bc06edaf5a02dce4d51cfd81cb /completions/fish/swaylock.fish
parente0ca5adecd0b0f89f20322c9b410b460e8f73c5b (diff)
Only submit password if previous validation completed
This averts the risk that one can queue up many password submissions by pressing enter repeatedly (or with key repeat, holding enter), much more quickly than PAM will process them. It may also improve usability by reducing unrevealed system state: now that at most one password can be queued, the "Verifying" message is always shown when a password is being validated. However, this commit does introduce a minor UI issue: if one types an invalid second password just slightly faster than PAM validation completes, it may fail to submit, and the signs of this may be hard to notice (state transition timing, presence of keypress indicator, and (if enabled) attempt count).
Diffstat (limited to 'completions/fish/swaylock.fish')
0 files changed, 0 insertions, 0 deletions