correct find mail api
This commit is contained in:
@@ -83,7 +83,7 @@ function client_find_email_kuri($mail){
|
|||||||
$pwd_query = "SELECT `clienthash` FROM `clients` WHERE `clientmail` = '$mail' LIMIT 1";
|
$pwd_query = "SELECT `clienthash` FROM `clients` WHERE `clientmail` = '$mail' LIMIT 1";
|
||||||
$client = db_get($pwd_query);
|
$client = db_get($pwd_query);
|
||||||
|
|
||||||
if (isset($client['client_id']))
|
if (isset($client['clienthash']))
|
||||||
return $client;
|
return $client;
|
||||||
else
|
else
|
||||||
return ['error' => 'client not found'];
|
return ['error' => 'client not found'];
|
||||||
|
|||||||
Reference in New Issue
Block a user