refer liks
This commit is contained in:
@@ -542,9 +542,16 @@ long WrenchResendMyReferLink(CVars in, CVars &out) {
|
||||
|
||||
try {
|
||||
REQ_STRING(in, "uid_part", 5, 15, "(.*)");
|
||||
REQ_STRING(in, "refer_link", 5, 150, "(.*)");
|
||||
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
||||
|
||||
|
||||
if ( load_db_record(x, " SELECT id, uid,email,firstname,lastname FROM members "
|
||||
" WHERE LOWER(SUBSTRING(uid::text, 0,9)) = LOWER('%s') "
|
||||
" AND id = %s", in["uid_part"].Long(), in["member_id"].Long()) > 0){
|
||||
account_email(WRENCHBOARD_MYREFLINK, x, x);
|
||||
}
|
||||
|
||||
} catch (bad_parameter) {
|
||||
out["status"] = "ERROR";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user