浏览代码

Update database.php

FusionPBX 6 年之前
父节点
当前提交
07d49f54d8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/authentication/resources/classes/plugins/database.php

+ 1 - 1
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
 		//check the username and password if they don't match then redirect to the login
 			$sql = "select * from v_users ";
 			$sql = "select * from v_users ";
 			if (strlen($this->key) > 30) {
 			if (strlen($this->key) > 30) {
-				$sql .= "where api_key = :key ";
+				$sql .= "where api_key = :api_key ";
 				$parameters['api_key'] = $this->key;
 				$parameters['api_key'] = $this->key;
 			}
 			}
 			else {
 			else {