Skip to content
Snippets Groups Projects
Commit b65b4481 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3113837 by Anybody, jurgenhaas: Downgrade unknown error to info

parent ea534e1b
Branches
Tags
1 merge request!17Issue #3113837 by jurgenhaas: Downgrade unknown error to info
Pipeline #62991 failed
......@@ -199,12 +199,12 @@ function recaptcha_captcha_validation($solution, $response, $element, $form_stat
'missing-input-response' => t('The response parameter is missing.'),
'missing-input-secret' => t('The secret parameter is missing.'),
'hostname-mismatch' => t('Expected hostname did not match.'),
'unknown-error' => t('Not a success, but no error codes received!'),
];
$info_codes = [
'challenge-timeout' => t('Challenge timeout.'),
'score-threshold-not-met' => t('Score threshold not met.'),
'timeout-or-duplicate' => t('The challenge response timed out or was already verified.'),
'unknown-error' => t('Not a success, but no error codes received!'),
];
foreach ($resp->getErrorCodes() as $code) {
if (isset($info_codes[$code])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment