This website works better with JavaScript.
Home
Explore
Help
Sign In
er1n
/
i3lock
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Ignore password validation is pam is in wrong state
This add a protection against wrong password spamming
master
Neodyblue
11 years ago
committed by
Michael Stapelberg
parent
0cbf483cb4
commit
8a630bec65
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
i3lock.c
+ 3
- 0
i3lock.c
View File
@ -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
;
Write
Preview
Loading…
Cancel
Save