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

Add a callback 'pre_signup_requests' executed in the beginning of login/signup.php

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Enable self-registration (Site administration>Plugins>Manage authentication)
      2. Make sure a user can register without problems
      3. Log out
      4. In any plugin create a callback

        function PLUGINFULLNAME_pre_signup_requests() {
           throw new coding_exception('boooo');
        }
        

      Try to signup again, you should get an error when hitting the login/signup.php page

      Show
      Enable self-registration (Site administration>Plugins>Manage authentication) Make sure a user can register without problems Log out In any plugin create a callback function PLUGINFULLNAME_pre_signup_requests() { throw new coding_exception('boooo'); } Try to signup again, you should get an error when hitting the login/signup.php page
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE
    • Pull Master Branch:
      wip-MDL-61485-master

      Description

      Advanced site policy handlers will want to display the site policy before displaying the signup form.
      Add callback 'pre_signup_requests' in the beginning of login/signup.php

        Attachments

          Activity

            People

            • Assignee:
              Geshoski Mihail Geshoski
              Reporter:
              marina Marina Glancy
              Peer reviewer:
              Marina Glancy
              Integrator:
              Jake Dallimore
              Tester:
              Adrian Greeve
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                19/Mar/18