From 2285669da089d2983303e0c248192d8fd7e07b18 Mon Sep 17 00:00:00 2001 From: Elke Kreim <elke.kreim@hs-hannover.de> Date: Mon, 31 Jan 2022 18:49:58 +0100 Subject: [PATCH] Remove recaptcha from contact form --- contact_form.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/contact_form.php b/contact_form.php index b98524d..942393e 100644 --- a/contact_form.php +++ b/contact_form.php @@ -47,11 +47,10 @@ class contact_form extends moodleform { $mform->setDefault('email', $USER->email); $mform->setDefault('telephone', $USER->phone1); } - if (!empty($CFG->recaptchapublickey) && !empty($CFG->recaptchaprivatekey)) { - $mform->addElement('recaptcha', 'recaptcha_element', get_string('security_question', 'auth'), 'style="margin: 10em"'); - - } - +// if (!empty($CFG->recaptchapublickey) && !empty($CFG->recaptchaprivatekey)) { +// $mform->addElement('recaptcha', 'recaptcha_element', get_string('security_question', 'auth'), 'style="margin: 10em"'); +// +// } $this->add_action_buttons(true, get_string('submit', 'local_hsh')); } -- GitLab