correct find mail api

This commit is contained in:
Andrey Kuvshinov
2020-05-13 07:04:40 +03:00
parent 479ffda007
commit 6467ece8e6

View File

@@ -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'];