mirror of https://github.com/i3/i3lock.git
Ignore password validation is pam is in wrong state
This add a protection against wrong password spammingpull/1/head
parent
0cbf483cb4
commit
8a630bec65
3
i3lock.c
3
i3lock.c
|
@ -299,6 +299,9 @@ static void handle_key_press(xcb_key_press_event_t *event) {
|
||||||
case XKB_KEY_Return:
|
case XKB_KEY_Return:
|
||||||
case XKB_KEY_KP_Enter:
|
case XKB_KEY_KP_Enter:
|
||||||
case XKB_KEY_XF86ScreenSaver:
|
case XKB_KEY_XF86ScreenSaver:
|
||||||
|
if (pam_state == STATE_PAM_WRONG)
|
||||||
|
return;
|
||||||
|
|
||||||
if (skip_without_validation()) {
|
if (skip_without_validation()) {
|
||||||
clear_input();
|
clear_input();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue