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

    • MOODLE_33_STABLE, MOODLE_34_STABLE
    • MOODLE_33_STABLE, MOODLE_34_STABLE
    • wip-MDL-61485-master
    • 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

    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

            Geshoski Mihail Geshoski
            marina Marina Glancy
            Marina Glancy Marina Glancy
            Jake Dallimore Jake Dallimore
            Adrian Greeve Adrian Greeve
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              19/Mar/18