Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-20285

recaptcha element is missng the red star as mandatory field

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Trivial Trivial
    • None
    • 1.9.5, 2.8.1
    • Forms Library
    • MOODLE_19_STABLE, MOODLE_28_STABLE
    • Easy

      if mform recaptcha element is included in a form it is always mandatory.
      Because of this a red star should be added to it wherever the recaptcha element appears.

      For instance, in moodle19/login/signup_form.php
      it is written:
      $mform->addElement('recaptcha', 'recaptcha_element', get_string('recaptcha', 'auth'), array('https' => $CFG->loginhttps));
      $mform->setHelpButton('recaptcha_element', array('recaptcha', get_string('recaptcha', 'auth')));
      but maybe it should be better:
      $mform->addElement('recaptcha', 'recaptcha_element', get_string('recaptcha', 'auth'), array('https' => $CFG->loginhttps));
      $mform->setHelpButton('recaptcha_element', array('recaptcha', get_string('recaptcha', 'auth')));
      $mform->addRule('recaptcha_element', get_string('missing_recaptchaelement'), 'required', null, 'server');

      or, better, the recaptcha element should always be provided by moodle libraries equipped with the red star, with no care for the calling function!

            Unassigned Unassigned
            daniss Daniele Cordella
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.