From 6467ece8e622fc1c623d758d54920b401167f6f4 Mon Sep 17 00:00:00 2001 From: Andrey Kuvshinov Date: Wed, 13 May 2020 07:04:40 +0300 Subject: [PATCH] correct find mail api --- app/api/apiclient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'];