From 5ceb6312b4644ed3377396df3c8035ec53bce6c2 Mon Sep 17 00:00:00 2001 From: frekky Date: Fri, 22 Jan 2016 21:56:22 +0800 Subject: [PATCH] Modified auth checking to count login attempts --- src/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.c b/src/user.c index 972abc9..e66ceb8 100644 --- a/src/user.c +++ b/src/user.c @@ -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;