This commit is contained in:
CHIEFSOFT\ameye
2024-09-19 16:30:03 -04:00
parent 361ab200e2
commit f1ceea9f12
+2 -2
View File
@@ -2494,7 +2494,7 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){
load_db_record( p, "SELECT md5('%s') AS password_md5, 'NG' AS country ", in["password"].c_str());
if ( load_db_record(y, "SELECT firstname , lastname , middlename , status,email FROM market_import WHERE uid::text ='%s' AND status = 1", in["promo_owner"].c_str())> 0){
if ( load_db_record(out, "SELECT id FROM members WHERE LOWER(username) = LOWER('%s')", y["username"].c_str())> 0){
if ( load_db_record(out, "SELECT id FROM members WHERE LOWER(username) = LOWER('%s')", y["email"].c_str())> 0){
out["status_message"] = "INVALID_LINK";
return PHP_API_BAD_PARAM;
}
@@ -2534,7 +2534,7 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){
if ( ret > 0 ){
inx["username"] = x["username"]; inx["username"].set_valid( true );
inx["password"] = x["password"]; in["password"].set_valid( true ); // before it was hashed
inx["password"] = x["password"]; in["password"].set_valid( true ); // before it was hashed
inx["sessionid"] = "THIS-IS-DUMMY-INSURANCE"; inx["sessionid"].set_valid( true );
inx["loc"] = loc; inx["loc"].set_valid( true );
inx["login_mode"] = LOGIN_MODE_GENERAL; inx["login_mode"].set_valid( true );