Explorar el Código

added UA to logger when mismatch

CauseFX hace 4 años
padre
commit
85b6072331
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 				}