family fix
This commit is contained in:
@@ -2006,8 +2006,7 @@ long WrenchBoardFamilyAccMemberID(CVars in, CVars &out){
|
|||||||
logfmt(logINFO, "********~~~~~~~~ ------WrenchBoardFamilyAccMemberID()");
|
logfmt(logINFO, "********~~~~~~~~ ------WrenchBoardFamilyAccMemberID()");
|
||||||
try {
|
try {
|
||||||
|
|
||||||
REQ_STRING(in, "username", 5, 49, "(.*)");
|
REQ_STRING(in, "family_uid", 5, 150, "(.*)");
|
||||||
REQ_STRING(in, "pin", 4, 10, "(.*)");
|
|
||||||
const PGresult *res = pgsql_query(" SELECT member_id AS parent_member_id, id AS family_id,* FROM members_family "
|
const PGresult *res = pgsql_query(" SELECT member_id AS parent_member_id, id AS family_id,* FROM members_family "
|
||||||
" WHERE uid='%s'", in["family_uid"].c_str());
|
" WHERE uid='%s'", in["family_uid"].c_str());
|
||||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user