From 0d6e96a18b2b29ffc9a4b162015147bd908bfd87 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 18 Sep 2019 20:39:28 -0600 Subject: [PATCH] Update database.php --- core/authentication/resources/classes/plugins/database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 7afbbcd7dd..97c4260915 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -32,7 +32,7 @@ class plugin_database { //check the username and password if they don't match then redirect to the login $sql = "select * from v_users "; if (strlen($this->key) > 30) { - $sql .= "where api_key = :key "; + $sql .= "where api_key = :api_key "; $parameters['api_key'] = $this->key; } else {