session add
This commit is contained in:
@@ -1790,11 +1790,12 @@ long LoginWrenchBoardExternal(CVars in, CVars &out) {
|
|||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
out["status"] = "Email is already registered";
|
out["status"] = "Email is already registered";
|
||||||
} else {
|
} else {
|
||||||
|
load_db_record(in, "SELECT upper(md5(now()::text))||''|| upper(md5(now()::date::text)) AS sessionid");
|
||||||
ret = load_db_record(out, "SELECT *,id AS member_id FROM members WHERE LOWER(email)=LOWER('%s') AND external_idp_provider_id='%s' AND external_idp_provider=%ld", in["email"].c_str(), in["external_idp_provider_id"].c_str(), in["external_idp_provider"].Long());
|
ret = load_db_record(out, "SELECT *,id AS member_id FROM members WHERE LOWER(email)=LOWER('%s') AND external_idp_provider_id='%s' AND external_idp_provider=%ld", in["email"].c_str(), in["external_idp_provider_id"].c_str(), in["external_idp_provider"].Long());
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
logfmt(logINFO, "External account already exists");
|
logfmt(logINFO, "External account already exists");
|
||||||
} else {
|
} else {
|
||||||
load_db_record(in, "SELECT upper(md5(now()::text))||''|| upper(md5(now()::date::text)) AS sessionid");
|
|
||||||
logfmt(logINFO, "Create new FB account");
|
logfmt(logINFO, "Create new FB account");
|
||||||
CVars xx;
|
CVars xx;
|
||||||
xx["username"] = in["email"];
|
xx["username"] = in["email"];
|
||||||
|
|||||||
Reference in New Issue
Block a user