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

auth_email does not prevent from creating invalid user names (i.e. containing space)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1 regressions, 3.1.1
    • Fix Version/s: 3.1.3
    • Component/s: Authentication
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as admin
      2. Go to Site administration ► Users ► Accounts ► Add a new user
      3. Try to create an user using spaces on username field.
      4. Make sure you get the validation error message:
        The username can only contain alphanumeric lowercase characters (letters and numbers), underscore (_), hyphen , period (.) or at symbol (@).
      5. Now, try to create the user using capital letters.
      6. Make sure you get the validation error message: Only lowercase letters allowed
      7. Go to Site administration ► Plugins ► Authentication ► Manage authentication
      8. Enable email self registration, don't need to set up anything.
      9. Logout.
      10. Go to login page and click Create new account button.
      11. Try to create an user using spaces on username field.
      12. Make sure you get the validation error message:
        The username can only contain alphanumeric lowercase characters (letters and numbers), underscore (_), hyphen , period (.) or at symbol (@).
      13. Now, try to create the user using capital letters.
      14. Make sure you get the validation error message: Only lowercase letters allowed
      Show
      Log in as admin Go to Site administration ► Users ► Accounts ► Add a new user Try to create an user using spaces on username field. Make sure you get the validation error message: The username can only contain alphanumeric lowercase characters (letters and numbers), underscore (_), hyphen , period (.) or at symbol (@). Now, try to create the user using capital letters. Make sure you get the validation error message: Only lowercase letters allowed Go to Site administration ► Plugins ► Authentication ► Manage authentication Enable email self registration , don't need to set up anything. Logout. Go to login page and click Create new account button. Try to create an user using spaces on username field. Make sure you get the validation error message: The username can only contain alphanumeric lowercase characters (letters and numbers), underscore (_), hyphen , period (.) or at symbol (@). Now, try to create the user using capital letters. Make sure you get the validation error message: Only lowercase letters allowed
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-55873-master
    • Sprint:
      3.2 Sprint 5
    • Issue size:
      Small

      Description

      In a default setup of Moodle (using Nginx, PHP5, PostgreSQL) a user created a new account where the desired user name contained spaces. This caused the user to not being able to log in after confirming the account.
      Another user also claimed that using capitals in user names also caused the same problem.

      The main complaint is that during creation of the account there is no warning against the use of capitals and/or spaces in the username.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lameze Simey Lameze
              Reporter:
              mauritslamers Maurits Lamers
              Peer reviewer:
              Adrian Greeve
              Integrator:
              David Monllaó
              Tester:
              Rajesh Taneja
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/Nov/16