Challenge: Only show captcha if requested

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2024-05-28 13:35:17 -05:00 committed by GitHub
parent 8383157f11
commit 26d56c2fcc
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')
)
) {
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) {