mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
If set use the SESSION username
This commit is contained in:
@@ -127,10 +127,15 @@ class plugin_database {
|
||||
//}
|
||||
|
||||
//add the authentication details
|
||||
if (isset($_REQUEST["username"]) && isset($_REQUEST["password"])) {
|
||||
if (isset($_REQUEST["username"])) {
|
||||
$this->username = $_REQUEST["username"];
|
||||
}
|
||||
if (isset($_REQUEST["password"])) {
|
||||
$this->password = $_REQUEST["password"];
|
||||
}
|
||||
if (isset($_SESSION['username'])) {
|
||||
$this->username = $_SESSION['username'];
|
||||
}
|
||||
if (isset($_REQUEST["key"])) {
|
||||
$this->key = $_REQUEST["key"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user