Making function of check_authenticated_user_and_ip a little more clear

This commit is contained in:
frekky 2015-10-27 18:36:00 +08:00
parent 3bcfe91769
commit a7dee7396c

View File

@ -228,9 +228,10 @@ check_user_and_ip(int userid, struct query *q)
return 1;
}
/* This checks that user has passed normal (non-raw) login challenge */
int
check_authenticated_user_and_ip(int userid, struct query *q)
/* This checks that user has passed normal (non-raw) login challenge
* Returns 0 on success, 1 if user is not authenticated/IP is wrong */
{
int res = check_user_and_ip(userid, q);
if (res)