Auth Manager Fix
This commit is contained in:
parent
fef3c1e57f
commit
862fc29bde
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user