sign up
This commit is contained in:
@@ -715,7 +715,24 @@ long CreateWrenchBoardAccountPending(CVars in, CVars &out) {
|
||||
|
||||
try {
|
||||
|
||||
if ( load_db_record(out, "SELECT id FROM members_pending WHERE LOWER(username)=LOWER('%s')",in["username"].c_str()) > 0 ){
|
||||
if ( load_db_record(out, "SELECT id AS pending_id, expire>now() AS expire,remind_count,now() > updated+'90 minutes' AS remind FROM members_pending WHERE LOWER(username)=LOWER('%s')",in["username"].c_str()) > 0 ){
|
||||
if (out["remind"]=="t" ){
|
||||
|
||||
if (in["mobile"] != "" && in["mobile"] == "MOBILE") {
|
||||
//ALTER TABLE members_pending ADD signup_random INT;
|
||||
x["mobile_email"] = "100"; x["mobile_email"].set_valid( true );
|
||||
AccountPendingMail(out);
|
||||
} else {
|
||||
AccountPendingMail(out);
|
||||
}
|
||||
ret = out["pending_id"].Long();
|
||||
load_db_record(out, "SELECT *,id AS pending_id FROM members_pending WHERE id=%lu LIMIT 1", ret);
|
||||
out["signup_random"] ="REMOVED";
|
||||
out["verify_link"] ="REMOVED";
|
||||
pgsql_query("UPDATE members_pending SET remind_count = remind_count+1 WHERE id = %lu", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
out["password"]="REMOVED";
|
||||
out["acc"]="DULPICATE";
|
||||
return PHP_API_BAD_PARAM;
|
||||
@@ -808,6 +825,8 @@ long CreateWrenchBoardAccountPending(CVars in, CVars &out) {
|
||||
} catch (bad_parameter) {
|
||||
out["status"] = "ERROR";
|
||||
}
|
||||
out["verify_link"] ="REMOVED";
|
||||
out["signup_random"] ="REMOVED";
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user