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

Validation when creating users through webservices needs to be reviewed and fixed

    XMLWordPrintable

    Details

      Description

      While reviewing a change Apu was making (MDL-25027) I noticed a couple of thigns that the webservice function that creates users was missing:

      1. Username must be lower case (reference: https://github.com/samhemelryk/moodle/blob/master/user/editadvanced_form.php#L172)
      2. Username should be using PARAM_USERNAME or at least cleaning with it and checking for differences (reference as above)
      3. user_create_user should be checking password policy etc (I think there may be an issue for this)

      Cheers
      Sam

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12