Note: You are currently viewing documentation for Moodle 2.8. Up-to-date documentation for the latest stable version of Moodle may be available here: error/moodle/invalidusername.


From MoodleDocs

A user's name can only contain alphabetical letters in lowercase, numbers, hyphen '-', underscore '_', period '.', or an at character '@' - unless 'Allow extended characters in usernames' is enabled in Administration > Site Administration > Security > Site Policies.