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

Add new settings for changing how some features of the Mobile app work

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2, 3.3
    • Fix Version/s: 3.3
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide
      1. As admin, enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Create a Token for one normal user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool"

      4. Check that by default the tool_mobile_forcelogout value is set to 0
      5. In Moodle Web, enable the setting tool_mobile_forcelogout (tick the box)
      6. Execute again the curl request and check that the value is set to 1
      7. Execute again the curl request removing the &section=mobileapp part from the query
      8. Check that you receive a list of several settings and the tool_mobile_forcelogout one with the correct value set to 1
      Show
      As admin, enable "Mobile services": Plugins ► Web Services ► Mobile Create a Token for one normal user: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool" Check that by default the tool_mobile_forcelogout value is set to 0 In Moodle Web, enable the setting tool_mobile_forcelogout (tick the box) Execute again the curl request and check that the value is set to 1 Execute again the curl request removing the &section=mobileapp part from the query Check that you receive a list of several settings and the tool_mobile_forcelogout one with the correct value set to 1
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57409-master

      Description

      This has been requested several times via forums/moots/etc:

      • Instead doing a "Change site" force a "Log out" when the user exists a site

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17