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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.1.3
    • 3.1 regressions, 3.1.1
    • Authentication
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • MDL-55873-master
    • 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
    • 3.2 Sprint 5
    • Small

      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.

            lameze Simey Lameze
            mauritslamers Maurits Lamers
            Adrian Greeve Adrian Greeve
            David Monllaó David Monllaó
            Rajesh Taneja Rajesh Taneja
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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