Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
captcha
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
captcha
Commits
7480d28d
Commit
7480d28d
authored
2 months ago
by
Jürgen Haas
Committed by
Julian Pustkuchen
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3507522
by jurgenhaas, anybody: Insert captcha widget even if placement is NULL
parent
48be3794
Branches
Branches containing commit
Tags
2.0.8
Tags containing commit
1 merge request
!111
Issue #3507522 by jurgenhaas: Insert captcha widget even if placement is NULL
Pipeline
#555109
failed
2 months ago
Stage: build
Stage: validate
Stage: test
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
captcha.module
+4
-6
4 additions, 6 deletions
captcha.module
with
4 additions
and
6 deletions
captcha.module
+
4
−
6
View file @
7480d28d
...
...
@@ -208,12 +208,11 @@ function captcha_form_alter(array &$form, FormStateInterface $form_state, $form_
];
// Get placement in form and insert in form.
if
(
$captcha_placement
=
_captcha_get_captcha_placement
(
$form_id
,
$form
)
)
{
$captcha_placement
=
_captcha_get_captcha_placement
(
$form_id
,
$form
)
;
$captchaService
->
insertCaptchaElement
(
$form
,
$captcha_placement
,
$captcha_element
);
}
}
}
}
// If the user has the "skip CAPTCHA" permission, check, if it should be
// rendered in "administration_mode", which adds administrative informations
// to the captcha:
...
...
@@ -273,9 +272,8 @@ function captcha_form_alter(array &$form, FormStateInterface $form_state, $form_
}
// Get placement in form and insert in form.
if
(
$captcha_placement
=
_captcha_get_captcha_placement
(
$form_id
,
$form
)
)
{
$captcha_placement
=
_captcha_get_captcha_placement
(
$form_id
,
$form
)
;
$captchaService
->
insertCaptchaElement
(
$form
,
$captcha_placement
,
$captcha_element
);
};
}
// If the user has the "skip Captcha" permission, but the
// administration_mode is not enabled, simply do nothing and therefore
...
...
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
sign in
to comment