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

Return extendedusernamechars in auth_email_get_signup_settings WebService

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 4.4
    • 4.4
    • Authentication
    • MOODLE_404_STABLE
    • MOODLE_404_STABLE
    • MDL-79296-main
    • Hide
      1. Go to Administration > Security > Site security settings and ensure that the " Allow extended characters in usernames " is not selected
      2. Do a CURL REST call simulating a WS client. You need to replace the URL of your Moodle instance

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

      3. Confirm that: you don't see among the returned information a field named "extendedusernamechars"
      4. Go to Administration > Security > Site security settings and ensure that the " Allow extended characters in usernames " is selected
      5. Repeat the previous CURL request

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

      6. Confirm that: you see among the returned information a field named "extendedusernamechars" with value true or 1
      Show
      Go to Administration > Security > Site security settings and ensure that the " Allow extended characters in usernames " is not selected Do a CURL REST call simulating a WS client. You need to replace the URL of your Moodle instance curl 'MOODLE_URL/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"auth_email_get_signup_settings","args":{}}] ' | python -m "json.tool" Confirm that: you don't see among the returned information a field named "extendedusernamechars" Go to Administration > Security > Site security settings and ensure that the " Allow extended characters in usernames " is selected Repeat the previous CURL request curl 'MOODLE_URL/lib/ajax/service.php' --data-binary ' [{"index":0,"methodname":"auth_email_get_signup_settings","args":{}}] ' | python -m "json.tool" Confirm that: you see among the returned information a field named "extendedusernamechars" with value true or 1

    Description

      The Moodle app needs to know the value of $CFG->extendedusernamechars in order to validate the username at client side.

      If a username with a wrong character is sent to auth_email_signup_user, the WebService returns an "Invalid parameter value" error and doesn't provide details, so we need to do this validation at client side to provide a better UX.

      Attachments

        Issue Links

          Activity

            People

              rodrigo.mady@moodle.com Rodrigo Mady
              dpalou Dani Palou
              Juan Leyva Juan Leyva
              Huong Nguyen Huong Nguyen
              Ron Carl Alfon Yu Ron Carl Alfon Yu
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 2 hours, 37 minutes
                  3d 2h 37m

                  Clockify

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