浏览代码

Update database.php

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

+ 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
 						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;
 						}