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

Login form inside SCORM frame

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.2.5, 2.3.2
    • 2.2, 2.3.1, 2.4
    • SCORM
    • MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
    • MOODLE_22_STABLE, MOODLE_23_STABLE
    • master_MDL-34656
    • Hide
      1. Add a SCORM to your page - easiest to test with scorm shown in current window and TOC displayed to the left.
      2. Enter SCORM player.
      3. Logout of Moodle on a seperate window - either by using logout link on current page but opening in new window or by having a separate moodle window open and logging out there.
      4. click on a link in the TOC to load a different SCO (or the same SCO) in the iframe.
      5. a message should be displayed stating the user isn't logged in - the login form should not load in the iframe.
      Show
      Add a SCORM to your page - easiest to test with scorm shown in current window and TOC displayed to the left. Enter SCORM player. Logout of Moodle on a seperate window - either by using logout link on current page but opening in new window or by having a separate moodle window open and logging out there. click on a link in the TOC to load a different SCO (or the same SCO) in the iframe. a message should be displayed stating the user isn't logged in - the login form should not load in the iframe.

      Reproduce:

      1. Run any SCORM-lesson.
      2. Start working with any lesson page.
      3. Click "Logout" by middle mouse button. Thats do logout, but tab with SCORM will remain on previous window.
      4. Return to window contained SCORM-lesson.
      5. Try move to any lesson-page.

      Result:
      Login form embedding into SCORM-frame.

      Solving:
      I manage it by adding next five lines at the start of login/index.php file:

       
      echo '<script>
          var str = top.location.href;
          if (str.substr(str.length - 20, 20) == "mod/scorm/player.php") { 
          top.location.href = str.substr(0, str.length - 20) + "login/index.php"; 
          }</script>';

      That script manage problem, but I think it's not best way.

            danmarsden Dan Marsden
            burich Yuriy Burka
            Dan Poltawski Dan Poltawski
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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