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

auth_email_get_signup_settings: Invalid response if profilefield shortname has underscore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.7.5, 3.8.2
    • 3.6.7, 3.7.3, 3.8, 3.9
    • Web Services
    • MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_37_STABLE, MOODLE_38_STABLE
    • MDL-67641-master
    • Hide
      1. As admin, go to Site administration ►Users ►Accounts ►User profile fields.
      2. Create a new profile field of any type. Make sure to add an underscore (_) in the short name and enable "Display on signup page?". E.g. the short name can be "my_new_field".
      3. Go to Site administration ►Plugins ►Authentication.
      4. Enable "Email-based self-registration".
      5. Now, open a Terminal/Console and execute the following curl command (replacing the site URL with yours)

        curl 'http://localhost/stable_master/lib/ajax/service.php' --data-binary '[{"index":0,"methodname":"auth_email_get_signup_settings","args":{}}]' | python -m "json.tool"

      1. Check that no error is returned and the field you created is included in the "profilefields" field of the response.
      Show
      As admin, go to Site administration ►Users ►Accounts ►User profile fields. Create a new profile field of any type. Make sure to add an underscore (_) in the short name and enable "Display on signup page?". E.g. the short name can be "my_new_field". Go to Site administration ►Plugins ►Authentication. Enable "Email-based self-registration". Now, open a Terminal/Console and execute the following curl command (replacing the site URL with yours) curl 'http://localhost/stable_master/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"auth_email_get_signup_settings","args":{}}] ' | python -m "json.tool" Check that no error is returned and the field you created is included in the "profilefields" field of the response.

      Revise webservices for accepting underscores in shortnames of user profile fields

            dpalou Dani Palou
            isabelrenedo Isabel Renedo Rouco
            Juan Leyva Juan Leyva
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m

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