mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-28 20:45:12 +00:00
Modified auth checking to count login attempts
This commit is contained in:
parent
88b11bffeb
commit
5ceb6312b4
@ -231,7 +231,7 @@ check_authenticated_user_and_ip(int userid, struct query *q, int check_ip)
|
|||||||
if (res)
|
if (res)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
if (!users[userid].authenticated)
|
if (!(users[userid].authenticated >= 1))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user