swaylock icon indicating copy to clipboard operation
swaylock copied to clipboard

Holding Enter key (for example while handling keyboard) queues large number of unlock attempts

Open hramrach opened this issue 5 months ago • 4 comments

Each unlock attempt takes quite a while, and with many queued the screen effectively cannot be unlocked for a long time.

There is an option to ignore empty passwords which would likely be a workaround if it is known that the password cannot be empty.

However, there are situations in which it is desirable to support both empty password and locking. For example, when building a live medium it is desirable to build it with an empty password so that users do not have to always ask around how to log in, and at the same time support securely locking the system if the user sets a password after the system is booted.

A solution would be to ignore input typed until the verification attempt finishes, or to special-case empty password, and ignore it once it fails to unlock the system. The latter can be prone to problems if the password is only one factor, and other factor is configured in PAM.

hramrach avatar Sep 11 '24 07:09 hramrach