From: Neodyblue Date: Mon, 13 Oct 2014 10:39:13 +0000 (+0100) Subject: Ignore password validation is pam is in wrong state X-Git-Tag: 2.7~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8a630bec651be1670f45c022a35399529ab0e523;p=i3%2Fi3lock Ignore password validation is pam is in wrong state This add a protection against wrong password spamming --- diff --git a/i3lock.c b/i3lock.c index 64e4600..71b02ee 100644 --- a/i3lock.c +++ b/i3lock.c @@ -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;