mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-28 20:45:12 +00:00
Making function of check_authenticated_user_and_ip a little more clear
This commit is contained in:
parent
3bcfe91769
commit
a7dee7396c
@ -228,9 +228,10 @@ check_user_and_ip(int userid, struct query *q)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This checks that user has passed normal (non-raw) login challenge */
|
|
||||||
int
|
int
|
||||||
check_authenticated_user_and_ip(int userid, struct query *q)
|
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);
|
int res = check_user_and_ip(userid, q);
|
||||||
if (res)
|
if (res)
|
||||||
|
Loading…
Reference in New Issue
Block a user