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

core_user_create_users allows to create user with empty username, firstname and lastname

    XMLWordPrintable

Details

    • MOODLE_34_STABLE
    • MOODLE_34_STABLE, MOODLE_35_STABLE
    • MDL-63174-master-emptyusername
    • Hide

      Manual testing not required - covered by unit tests.

      If you insist on checking this manually, set up a site with a custom web service that allows a client to register new users, implement a test client and attempt to register a user with empty username, lastname or firstname.

      Show
      Manual testing not required - covered by unit tests. If you insist on checking this manually, set up a site with a custom web service that allows a client to register new users, implement a test client and attempt to register a user with empty username, lastname or firstname.

    Description

      Steps to reproduce

      1. Attempt to create a new user account via web service, with empty username, firstname and lastname field
      • Expected result: The UI interface does not allow to create such a user, so the WS should not allow that neither.
      • Actual result: A new user is created, having all these three fields empty.

      Attachments

        1. demo.js
          0.8 kB
        2. screenshot-1.png
          screenshot-1.png
          63 kB

        Activity

          People

            mudrd8mz David Mudrák (@mudrd8mz)
            bastianignacioc Bastian Cisternas
            Juan Leyva Juan Leyva
            David Monllaó David Monllaó
            CiBoT CiBoT
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona), Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Sep/18