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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.2
    • 3.2
    • Authentication
    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • wip-MDL-56625-master
    • 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.

      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.

            abgreeve Adrian Greeve
            abgreeve Adrian Greeve
            Jake Dallimore Jake Dallimore
            Andrew Lyons Andrew Lyons
            Rajesh Taneja Rajesh Taneja
            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.