fix query
This commit is contained in:
@@ -1383,8 +1383,8 @@ long WrenchSendJobsOfferIndividual(CVars in, CVars &out) {
|
||||
CVars z;
|
||||
|
||||
try {
|
||||
// let us use this email to see if this alredy a user on the system
|
||||
if (load_db_record(out, " SELECT id AS client_id FROM members WHERE LOWER('username') =LOWER('%s')", in["email"].c_str())) {
|
||||
// let us use this email to see if this already a user on the system
|
||||
if (load_db_record(out, " SELECT username,id AS client_id FROM members WHERE LOWER(username) =LOWER(TRIM('%s'));", in["email"].c_str())) {
|
||||
in["client_id"] = out["client_id"]; // overiddind if account is found
|
||||
if (out["client_id"].length() > 0) {
|
||||
x["client_id"] = in["client_id"];
|
||||
|
||||
Reference in New Issue
Block a user