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

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

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3
    • 3.2, 3.3
    • Administration
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_33_STABLE
    • MDL-57409-master
    • 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

      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

            jleyva Juan Leyva
            jleyva Juan Leyva
            Ankit Agarwal Ankit Agarwal
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Adrian Greeve Adrian Greeve
            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.