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

Responding to confirmation email for new account creation results in fatal error.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      • Set up a mail server. Docker could be useful – Edited: cleaning reference to outdated document –
      • Go to "Site administration  ► Plugins  ► Message outputs  ► Email" and put in the details for the SMTP host.
      • Go to "Site administration  ► Plugins  ► Authentication  ► Manage authentication" and make sure that "Email-based self-registration" is enabled.
      • Scroll down that page and set "Self registration" to "Email-based self-registration"

      Test

      1. Go to the log in screen and click the button to create a new account.
      2. Fill in the details and submit the form.
      3. Check the email that will be sent to you. Copy the confirmation link and "paste and go".
      4. Check that you don't see a fatal error. Instead you should have access to Moodle.
      Show
      Setup Set up a mail server. Docker could be useful – Edited: cleaning reference to outdated document – Go to "Site administration  ► Plugins  ► Message outputs  ► Email" and put in the details for the SMTP host. Go to "Site administration  ► Plugins  ► Authentication  ► Manage authentication" and make sure that "Email-based self-registration" is enabled. Scroll down that page and set "Self registration" to "Email-based self-registration" Test Go to the log in screen and click the button to create a new account. Fill in the details and submit the form. Check the email that will be sent to you. Copy the confirmation link and "paste and go". Check that you don't see a fatal error. Instead you should have access to Moodle.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-56625-master

      Description

      Replication steps:

      1. Click the create new account when logging in (this requires some setup).
      2. Enter in details and save.
      3. Check email. It will have a link to confirm the new account.
      4. Go to address and observe the fatal error.

      This is due to the introduction of signup_get_user_confirmation_authplugin() in MDL-56092.
      All we need is something like:

      require_once("$CFG->libdir/authlib.php");
      

      In login/confirm.php and everything will work again.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              abgreeve Adrian Greeve
              Reporter:
              abgreeve Adrian Greeve
              Peer reviewer:
              Jake Dallimore
              Integrator:
              Andrew Nicols
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/16