ソースを参照

added UA to logger when mismatch

CauseFX 3 年 前
コミット
85b6072331
1 ファイル変更1 行追加1 行削除
  1. 1 1
      api/classes/organizr.class.php

+ 1 - 1
api/classes/organizr.class.php

@@ -1678,7 +1678,7 @@ class Organizr
 			} else {
 				// Check if user is on same browser as token
 				if ($allTokens[$tokenKey]['browser'] !== $_SERVER ['HTTP_USER_AGENT']) {
-					$this->setLoggerChannel('Authentication')->warning('Mismatch of useragent');
+					$this->setLoggerChannel('Authentication')->warning('Mismatch of useragent', ['token' => $allTokens[$tokenKey]['browser'], 'browser' => $_SERVER ['HTTP_USER_AGENT']]);
 					$this->invalidToken($token);
 					return false;
 				}