Skip to content

Commit

Permalink
Merge pull request #37 from beatrycze-volk/fix-hmac
Browse files Browse the repository at this point in the history
[BUGFIX] Fix call to `hmac` function
  • Loading branch information
beatrycze-volk authored Oct 7, 2024
2 parents c892cd5 + c48bb0a commit 8f17493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Controller/AdministrationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function showAction(User $user)
public function editUserAction(User $user)
{
if (!empty($user) && !empty($user->getUid())) {
$token = GeneralUtility::hmac($user->getUid(), (string)$user->getCrdate()->getTimestamp());
$token = GeneralUtility::hmac((string)$user->getUid(), (string)$user->getCrdate()->getTimestamp());

/** @var UserGroup[] $feUserGroup */
$feUserGroup = $user->getUsergroup()->getArray();
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function listAction()

$this->view->assignMultiple([
'savedSearches' => $this->searchRepository->findByFeUser($userUid),
'token' => GeneralUtility::hmac($userUid, (string) $this->user->getCrdate()->getTimestamp()),
'token' => GeneralUtility::hmac((string)$userUid, (string) $this->user->getCrdate()->getTimestamp()),
'user' => $userUid
]);
}
Expand Down

0 comments on commit 8f17493

Please sign in to comment.