Skip to content

Commit 0fef035

Browse files
committed
logger drops the context so I have to revert back to json_encode
1 parent 885b726 commit 0fef035

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

modules/silauth/src/Auth/Source/auth/Authenticator.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,13 @@ public function __construct(
8080
]));
8181
$result = $captcha->validate($request);
8282
if (!$result->ok) {
83-
$this->logger->warning('Invalid/missing captcha', [
84-
'event' => 'invalid_captcha',
83+
$this->logger->warning(json_encode([
84+
'event' => 'Invalid/missing captcha',
85+
'username' => $username,
86+
'ipAddresses' => join(',', $ipAddresses),
8587
'reason' => $result->reason,
8688
...$result->context,
87-
]);
89+
]));
8890
$this->setErrorInvalidLogin();
8991
return;
9092
}

0 commit comments

Comments
 (0)