From e6d0580081765b62500ac40976088ed60673937c Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 19 Sep 2024 17:37:26 -0400 Subject: [PATCH] WelcomeAccountMail(z); --- wrenchboard/src/shared_tool/account.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wrenchboard/src/shared_tool/account.cc b/wrenchboard/src/shared_tool/account.cc index ddf0fcd9..7da729e8 100644 --- a/wrenchboard/src/shared_tool/account.cc +++ b/wrenchboard/src/shared_tool/account.cc @@ -2483,6 +2483,7 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){ CVars x; CVars y; CVars p; + CVars z; CVars inx; try { @@ -2533,6 +2534,12 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){ // } if ( ret > 0 ){ + z["member_id"] = ret; + z["member_id"].set_valid(true); + WelcomeAccountMail(z); + // let us mark tye import ac complete + pgsql_query("UPDATE market_import SET status = 5 WHERE uid::text = '%s' AND status = 1 ", in["promo_owner"].c_str()); + inx["username"] = x["username"]; inx["username"].set_valid( true ); inx["password"] = in["password"]; inx["password"].set_valid( true ); // before it was hashed inx["sessionid"] = "THIS-IS-DUMMY-INSURANCE"; inx["sessionid"].set_valid( true );