Hello everyone,http://modxcms.com/forums/index.php/topic,23393.0.html
The default websignup.inc.php script does not perform any special char checks. If you wish you only allow a-z, A-Z & 0-9 in your usernames, you can modify the script as follows
Code:
// no spaces or special chars in username!
if(ereg(’ ’, $username)) {
$output = webLoginAlert("Username can not contain blank spaces or special chars!").$tpl;
return;
}
if(ereg(’[^[:space:]a-zA-Z0-9_.-]{1,}’, $username)) {
$output = webLoginAlert("Username can not contain blank spaces or special chars!").$tpl;
return;
}