mirror of
https://git.steelants.cz/SH/PHP_SMART_HOME_V3.git
synced 2026-10-11 17:54:34 +00:00
Auth Manager Fix
This commit is contained in:
1 parent
fef3c1e57f
commit
862fc29bde
1 file changed
+1
-1
@@ -3,7 +3,7 @@
|
||||
class AuthManager {
|
||||
public function getToken($username, $password, $userAgent = null){
|
||||
if ($userAgent == null) {
|
||||
$userAgent = $this->headers['HTTP_USER_AGENT'];
|
||||
$userAgent = $_SERVER['HTTP_USER_AGENT'];
|
||||
}
|
||||
|
||||
$userManager = new UserManager();
|
||||
|
||||
Reference in new issue
Block a user