Challenge: Only show captcha if requested

This commit is contained in:
Scott Nonnenberg 2024-05-29 04:18:10 +10:00 committed by GitHub
parent 11eb1782a7
commit fc2bccb6b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -267,7 +267,11 @@ export class ChallengeHandler {
data.options?.includes('recaptcha') data.options?.includes('recaptcha')
) )
) { ) {
log.error(`${logId}: unexpected options ${JSON.stringify(data.options)}`); const dataString = JSON.stringify(data.options);
log.error(
`${logId}: unexpected options ${dataString}. ${conversationId} is waiting.`
);
return;
} }
if (!challenge.token) { if (!challenge.token) {