Captcha bugfix + Logger stracktrace improvements

This commit is contained in:
2024-05-04 17:06:39 +02:00
parent 2a1db919e8
commit a5e4cf6a74
5 changed files with 26 additions and 17 deletions

View File

@@ -8,8 +8,8 @@ use Core\Objects\Context;
trait Captcha {
function addCaptchaParameters(array &$parameters): void {
$settings = $this->context->getSettings();
function addCaptchaParameters(Context $context, array &$parameters): void {
$settings = $context->getSettings();
if ($settings->isCaptchaEnabled()) {
$parameters["captcha"] = new StringType("captcha");
}