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

Auto-Login as Guest Doesn't Work Unless Button is Enabled

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-74893-MOODLE_401_STABLE-fix_auto_login_guest
    • MDL-74893-master-fix_auto_login_guest
    • Hide
      1. Login as admin user:
      2. Go to "Administration > Users > Permissions > User policies" and enable the option "Auto-login guests (autologinguests)"
      3. Go to "Administration > Plugins > Authentication > Manage authentication" and select in the field "Guest login button(guestloginbutton)" the option "Hide"
      4. Create a new course (Course 1)
      5. Go to Participants > Enrolment methods  and enable the option "Guest access"
      6. Log out 
      7. Try to access the course 
      8. Verify that you are able to see the course and you are now logged in as guest
      Show
      Login as admin user: Go to "Administration > Users > Permissions > User policies" and enable the option "Auto-login guests (autologinguests)" Go to "Administration > Plugins > Authentication > Manage authentication" and select in the field "Guest login button(guestloginbutton)" the option "Hide" Create a new course (Course 1) Go to Participants > Enrolment methods  and enable the option "Guest access" Log out  Try to access the course  Verify that you are able to see the course and you are now logged in as guest
    • 1
    • Team Hedgehog 2023 Sprint 2.2, Team Hedgehog 2023 Sprint 2.3

      I'm attempting to selectively allow guest access to courses where guests can view the course homepage if not logged in, but are not prompted with the "log in as guest" button. (In other words, if guest access is enabled at the course level they can view the course, but if it's not enabled at the course level they are only given the option to log in). 

      Site Settings

      Users > User Policies > autologinguests: TRUE

      Plugins > Authentication > Manage authentication > guestloginbutton: FALSE

      Plugins > Enrolment > Manage enrol plugins > Guest access: ENABLED

      Course Settings

      Settings > Participants > Enrolment Methods > Guest access > Allow guest access: TRUE

       

      What I expect to happen

      The unauthenticated user is able to visit the course (either directly via URL or from the frontpage) and view the course page.

      What actually happens

      The user is prompted to log in.

      Workaround

      The issue does not occur and the expected behavior occurs if the guestloginbutton setting is set to TRUE.

            ara Anders Rasmussen
            johnfleischauer John Fleischauer
            Raquel Ortega Raquel Ortega
            Jun Pataleta Jun Pataleta
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 32 minutes
                4h 32m

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