Initialize account
This commit is contained in:
@@ -176,6 +176,7 @@ long WrenchFamilyUpdate(CVars in, CVars &out){
|
||||
return ret;
|
||||
}
|
||||
|
||||
long WrenchFamilyInitializeAccount(CVars in, CVars &out);
|
||||
long WrenchFamilyManage(CVars in, CVars &out){
|
||||
/*
|
||||
wrenchboard=> select * from members_family;
|
||||
@@ -197,6 +198,10 @@ wrenchboard=> select * from members_family;
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res, 0);
|
||||
CVars rec;
|
||||
map_to_cvars(f, rec);
|
||||
if( rec["username"]=='' || rec['pin']==''){
|
||||
logfmt(logINFO, "WrenchFamilyManage()- NEED TI INITIALIZE USERNAME PIN");
|
||||
WrenchFamilyInitializeAccount(rec,out);
|
||||
}
|
||||
out = rec;
|
||||
ret = PHP_API_OK;
|
||||
}
|
||||
@@ -209,7 +214,14 @@ wrenchboard=> select * from members_family;
|
||||
return ret;
|
||||
}
|
||||
|
||||
long WrenchFamilyInitializeAccount(CVars in, CVars &out){
|
||||
logfmt(logINFO, "WrenchFamilyInitializeAccount()");
|
||||
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
/*
|
||||
|
||||
#define WRENCHBOARD_FAMILY_LIST 22010
|
||||
|
||||
Reference in New Issue
Block a user