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

Authentication: MFA - No factor PHP warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • None
    • 4.3
    • Authentication
    • MOODLE_403_STABLE
    • Hide

      Without the patch

      1. Navigate to Site administration > Plugins > Admin tools > manage MFA
      2. Make sure MFA is enabled: "MFA plugin enabled is checked"
      3. Click save
      4. Enable a single MFA factor: such as "Authenticator App" or security key. Make sure you have the relevant facto to complete MFA or you will easily lock yourself out of the site
      5. Navigate to your user preferences
      6. Click "Multi-factor authentication preference"
      7. Set up the factor for your user
      8. Log out.
      9. Log in.
      10. When presented with the factor prompt page, click "I don't have my..." button
      11. You should see the stack trace

      With the patch

      TBA

      Show
      Without the patch Navigate to Site administration > Plugins > Admin tools > manage MFA Make sure MFA is enabled: "MFA plugin enabled is checked" Click save Enable a single MFA factor: such as "Authenticator App" or security key. Make sure you have the relevant facto to complete MFA or you will easily lock yourself out of the site Navigate to your user preferences Click "Multi-factor authentication preference" Set up the factor for your user Log out. Log in. When presented with the factor prompt page, click "I don't have my..." button You should see the stack trace With the patch TBA

      When you click "I don't have my..." factor button (and dont' have grace period or trust this device enabled), you receive the following stack trace on https://<moodle_url>/admin/tool/mfa/auth.php{}

      Warning: Undefined property: stdClass::$supportemail in /var/www/html/admin/tool/mfa/renderer.php on line 216
      The boolean $primary is deprecated and replaced by $type, use single_button::BUTTON_PRIMARY or self::BUTTON_SECONDARY instead  line 907 of /lib/outputcomponents.php: call to debugging() line 234 of /admin/tool/mfa/renderer.php: call to single_button->__construct() line 192 of /admin/tool/mfa/classes/manager.php: call to tool_mfa_renderer->not_enough_factors() line 287 of /admin/tool/mfa/classes/manager.php: call to tool_mfa\manager::cannot_login() line 78 of /admin/tool/mfa/auth.php: call to tool_mfa\manager::resolve_mfa_status()  

       

            raquel.ortega@moodle.com Raquel Ortega
            matt.porritt@moodle.com Matt Porritt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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