Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
recaptcha
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
recaptcha
Commits
b65b4481
Commit
b65b4481
authored
Dec 13, 2023
by
Julian Pustkuchen
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3113837
by Anybody, jurgenhaas: Downgrade unknown error to info
parent
ea534e1b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!17
Issue #3113837 by jurgenhaas: Downgrade unknown error to info
Pipeline
#62991
failed
Dec 13, 2023
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
recaptcha.module
+1
-1
1 addition, 1 deletion
recaptcha.module
with
1 addition
and
1 deletion
recaptcha.module
+
1
−
1
View file @
b65b4481
...
...
@@ -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
]))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment