Skip to content

Commit

Permalink
Update WebBridge.php
Browse files Browse the repository at this point in the history
  • Loading branch information
levizoesch authored Feb 10, 2024
1 parent 2421608 commit 3eba2b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function VerifyRequest(): bool

$userAgent = Request()->header('USER_AGENT');
$timeStamp = Request()->header('X-UE5-Timestamp');
$jpbToken = Request()->header('X-UE5-Token');
$ue5Token = Request()->header('X-UE5-Token');

if (in_array($userAgent, ['UE5-Client', 'UE5-Server', 'UE5-Editor'])) {

Expand All @@ -42,7 +42,7 @@ public function VerifyRequest(): bool
// Expected encrypted token
$encrypted = $this->encrypt($backToUETimestamp, $this->ENCRYPTION_KEY);

if ($jpbToken !== $encrypted) {
if ($ue5Token !== $encrypted) {
// Hash does not match
return false;
}
Expand Down

0 comments on commit 3eba2b4

Please sign in to comment.