Update database.php

This commit is contained in:
FusionPBX 2019-05-14 11:08:01 -06:00 committed by GitHub
parent ca856f99c7
commit 2b24e693dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -40,7 +40,7 @@ class plugin_database {
//$sql .= "where api_key = '".$this->key."' "; //$sql .= "where api_key = '".$this->key."' ";
} }
else { else {
$sql .= "where username=:username "; $sql .= "where lower(username) = lower(:username) ";
//$sql .= "where username = '".$this->username."' "; //$sql .= "where username = '".$this->username."' ";
} }
if ($_SESSION["user"]["unique"]["text"] == "global") { if ($_SESSION["user"]["unique"]["text"] == "global") {