Search the Community
Showing results for tags 'markupgooglerecaptcha'.
-
Markup-Google-Recaptcha is not working with LoginRegister module in Forgotton Password Form. Here is my code wire-> modules -> process -> ProcessForgotPassword.php protected function step1_renderForm() { $form = $this->modules->get("InputfieldForm"); $form->attr('action', './?forgot=1'); $form->attr('method', 'post'); $field = $this->modules->get("InputfieldText"); $field->attr('id+name', 'username'); $field->attr('class', 'redesign-field forgotPassFeild'); $field->setAttribute('placeholder', 'Username'); $field->required = true; $field->label = $this->_("Forgotton Password"); $field->description = $this->_("If you cannot remember your password to access the affiliates portal. simply provide your username in the box below and we'll send you a reset link via email."); $form->add($field); // Calling MarkupGoogleRecaptcha Module. $captcha = $modules->get("MarkupGoogleRecaptcha"); // rendering form with recaptcha $captcha->render($form); $submit = $this->modules->get("InputfieldSubmit"); $submit->attr('id+name', 'submit_forgot'); $form->add($submit); $this->session->userResetStep = 1; // rendering form $out .= $form->render(); // getting captcha script $out .= $captcha->getScript(); return $out; } I am following this one example. please suggest me how i can show MarkupGoogleRecaptcha in forgotton password. Getting log error Thanks, Abdul Qayyum
-
- password reset
- processwire
-
(and 2 more)
Tagged with: