I guess, the logic here should be to not allow locking where there's no password.
STEPS TO REPRODUCE
1. Log in as a user with an empty password
2. after a while, find the screen locked
3. attempt to unlock without entering a password
4. the screen remains locked
% pkg info -x kscreenlock
Operating System: FreeBSD 14.0
KDE Plasma Version: 5.22.3
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 14.0-CURRENT (64-bit)
Graphics Platform: X11
Memory: 15.9 GiB of RAM
Graphics Processor: AMD TURKS
*** Bug 440344 has been marked as a duplicate of this bug. ***
Eek. Can confirm.
Does SDDM have an impact?
Passwordless Login · Issue #751 · sddm/sddm
The behaviour is now changed - but not perfect (hence leaving this open) it now unlocks immediately on resume from the "screensaver" mode.
Git commit dc6341bb3073ebe0beb945018cc7bb67ee2dd828 by David Edmundson.
Committed on 18/05/2022 at 11:09.
Pushed by davidedmundson into branch 'master'.
Add an explicit unlock button for passwordless users
In the refactor we correctly made it so passwordless users were not
prompted for passwords.
This is in the right direction but the UX was still slightly off as it
meant wiggling the mouse unlocked the screen, not an explicit action.
This patch adds an explicit button that must be pressed if no other
prompts were given during the authentication process.
M +10 -1 lookandfeel/contents/lockscreen/LockScreenUi.qml
A +23 -0 lookandfeel/contents/lockscreen/NoPasswordUnlock.qml [License: GPL(v2.0+)]