Unverified Commit 2024c8e2 authored by Tristan Olive's avatar Tristan Olive Committed by GitHub

Merge pull request #3251 from drshawnkwang/drupal_feature-passresetcaptcha

Drupal: Add ReCaptcha to user password reset form.
parents c527b0f0 3f4e67e7
......@@ -1304,6 +1304,14 @@ function boincuser_form_alter(&$form, $form_state, $form_id) {
),
));
if (module_exists('captcha')) {
// Add an optional captcha
$form['register_captcha'] = array(
'#type' => 'captcha',
'#weight' => 1000,
);
}
// Wrap action buttons for styling consistency
$form['buttons']['form control tabs prefix'] = array(
'#value' => '<ul class="form-control tab-list">',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment