Skip to content

Commit

Permalink
remove the reference for the template manager parameter as it's not n…
Browse files Browse the repository at this point in the history
…eeded
  • Loading branch information
Godoy0722 authored and asmecher committed Jan 11, 2025
1 parent 9279145 commit 018624c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/form/validation/FormValidatorAltcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function validateResponse(?string $response, ?string $ip = null):
}
}

public static function addAltchaJavascript(TemplateManager &$templateMgr): void
public static function addAltchaJavascript(TemplateManager $templateMgr): void
{
$request = Application::get()->getRequest();
$altchaPath = $request->getBaseUrl() . '/node_modules/altcha/dist/altcha.js';
Expand All @@ -100,7 +100,7 @@ public static function addAltchaJavascript(TemplateManager &$templateMgr): void
$templateMgr->addHeader('altcha', $altchaHeader);
}

public static function insertFormChallenge(TemplateManager &$templateMgr): void
public static function insertFormChallenge(TemplateManager $templateMgr): void
{
$options = new ChallengeOptions([
'hmacKey' => Config::getVar('captcha', 'altcha_hmackey'),
Expand Down

0 comments on commit 018624c

Please sign in to comment.