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

Update the tool_mobile_get_public_config WS to return the new option to hide the login form

XMLWordPrintable

    • MOODLE_405_STABLE
    • MOODLE_405_STABLE
    • MDL-82234-main
    • Hide
      1. As admin, enable "Mobile services":
        • Enable “Web services for mobile devices” on Site administration ► Advanced features
      2. Create a Token in the mobile app service for the admin, use:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      3. Next, make CURL REST calls simulating a WS client. You need to replace MOODLE_URL and $wstoken, and call:

        curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_public_config&wstoken=$wstoken' --compressed

        • Confirm that you receive the "showloginform" at the end of the response.
      Show
      As admin, enable "Mobile services": Enable “Web services for mobile devices” on Site administration ► Advanced features Create a Token in the mobile app service for the admin, use: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, make CURL REST calls simulating a WS client. You need to replace MOODLE_URL and $wstoken, and call: curl 'MOODLE_URL/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_public_config&wstoken=$wstoken' --compressed Confirm that you receive the "showloginform" at the end of the response.

      We'd need this for the app to mimic the behaviour, especially when identity providers that work from within the app are enabled.

      This is quite straightforward, we just need to return a new field "showloginform": showloginform => (int) get_config('core', 'showloginform');

            daniure Dani Ureña
            jleyva Juan Leyva
            Paul Holden Paul Holden
            Safat Shahin Safat Shahin
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m

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