Auth Manager Fix

This commit is contained in:
JonatanRek 2020-05-17 14:15:54 +02:00
parent fef3c1e57f
commit 862fc29bde

View File

@ -3,7 +3,7 @@
class AuthManager { class AuthManager {
public function getToken($username, $password, $userAgent = null){ public function getToken($username, $password, $userAgent = null){
if ($userAgent == null) { if ($userAgent == null) {
$userAgent = $this->headers['HTTP_USER_AGENT']; $userAgent = $_SERVER['HTTP_USER_AGENT'];
} }
$userManager = new UserManager(); $userManager = new UserManager();