diff --git a/app/api/apiclient.php b/app/api/apiclient.php index db2f802..ed38141 100644 --- a/app/api/apiclient.php +++ b/app/api/apiclient.php @@ -83,7 +83,7 @@ function client_find_email_kuri($mail){ $pwd_query = "SELECT `clienthash` FROM `clients` WHERE `clientmail` = '$mail' LIMIT 1"; $client = db_get($pwd_query); - if (isset($client['client_id'])) + if (isset($client['clienthash'])) return $client; else return ['error' => 'client not found'];