From 07482f52d5d49ee0fe727264f46ba4c676d723c8 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 3 Oct 2016 21:37:27 -0600 Subject: [PATCH] Update database.php --- core/authentication/resources/classes/plugins/database.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/authentication/resources/classes/plugins/database.php b/core/authentication/resources/classes/plugins/database.php index 0e8f57c2b5..fe3297d88f 100644 --- a/core/authentication/resources/classes/plugins/database.php +++ b/core/authentication/resources/classes/plugins/database.php @@ -98,10 +98,8 @@ class plugin_database { //compare the password provided by the user with the one in the database if (md5($row["salt"].$this->password) == $row["password"]) { $user_authorized = true; - $_SESSION['username'] = $row["username"]; //return the username } elseif (strlen($this->key) > 30 && $this->key == $row["api_key"]) { $user_authorized = true; - $_SESSION['username'] = $row["username"]; //return the username } else { $user_authorized = false; }