diff options
author | Neodyblue <sieramsn@gmail.com> | 2014-10-13 11:39:13 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2014-10-13 17:53:49 +0200 |
commit | 8a630bec651be1670f45c022a35399529ab0e523 (patch) | |
tree | 6188870e4f631fa9711ffc5003e35d78ee75e727 | |
parent | 0cbf483cb4a1597343df90642ac475b288ae9e80 (diff) |
Ignore password validation is pam is in wrong state
This add a protection against wrong password spamming
-rw-r--r-- | i3lock.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -299,6 +299,9 @@ static void handle_key_press(xcb_key_press_event_t *event) { case XKB_KEY_Return: case XKB_KEY_KP_Enter: case XKB_KEY_XF86ScreenSaver: + if (pam_state == STATE_PAM_WRONG) + return; + if (skip_without_validation()) { clear_input(); return; |