Modified auth checking to count login attempts

This commit is contained in:
frekky 2016-01-22 21:56:22 +08:00
parent 88b11bffeb
commit 5ceb6312b4

View File

@ -231,7 +231,7 @@ check_authenticated_user_and_ip(int userid, struct query *q, int check_ip)
if (res)
return res;
if (!users[userid].authenticated)
if (!(users[userid].authenticated >= 1))
return 1;
return 0;