Thanks but about username only contain the a to z , A to Z, 0 to 9 ???
Register a function to the 'registeruser:validate:username', 'all' plugin hook. Within the function check $params['username'] if the username contains characters (or whole specific usernames) you won't allow. Return true/false depending on the username is valid or not according to your requirements.
You can also take a look at the function validate_username() in vendor/elgg/elgg/engine/lib/users.php to see how Elgg validates a username
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.