Skip to content

Commit

Permalink
Fix token error on add hosts #574
Browse files Browse the repository at this point in the history
(dont push direct to master kids)
  • Loading branch information
turtle0x1 committed Aug 26, 2024
1 parent 7e6e4f5 commit 07df3ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Tools/Hosts/AddHosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function add($userId, array $hostsDetails)
$hostName,
$hostsDetail["trustPassword"], // Might end with whitepsace
$socketPath,
trim($hostsDetail["token"]) // b64 shouldn't have whitespace
$hostsDetail["token"] !== null ? trim($hostsDetail["token"]) : null // b64 shouldn't have whitespace
);

$alias = null;
Expand Down

0 comments on commit 07df3ae

Please sign in to comment.