Pārlūkot izejas kodu

Update database.php

FusionPBX 9 gadi atpakaļ
vecāks
revīzija
2d956b809c

+ 0 - 2
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
 					//compare the password provided by the user with the one in the database
 						if (md5($row["salt"].$this->password) == $row["password"]) {
 						if (md5($row["salt"].$this->password) == $row["password"]) {
 							$user_authorized = true;
 							$user_authorized = true;
-							 $_SESSION['username'] = $row["username"]; //return the username
 						} elseif (strlen($this->key) >  30 && $this->key == $row["api_key"]) {
 						} elseif (strlen($this->key) >  30 && $this->key == $row["api_key"]) {
 							$user_authorized = true;
 							$user_authorized = true;
-							$_SESSION['username'] = $row["username"]; //return the username
 						} else {
 						} else {
 							$user_authorized = false;
 							$user_authorized = false;
 						}
 						}