diff options
| author | Manuel Stoeckl <code@mstoeckl.com> | 2024-09-17 12:57:17 -0400 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-03-16 16:13:09 +0100 |
| commit | 65f3eb349259d571397e5ab769dc5f524966c212 (patch) | |
| tree | c87b17a201c506bc06edaf5a02dce4d51cfd81cb /LICENSE | |
| parent | e0ca5adecd0b0f89f20322c9b410b460e8f73c5b (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 'LICENSE')
0 files changed, 0 insertions, 0 deletions
