How to limit usernames to just letters, numbers & underscores? (like Twitter)
Is there a way to set the username restrictions like Twitter's during registration?
I did some digging and I'm not sure how to edit this particular code so it's A-Z, a-z, 0-9, and _
$Configuration['Garden']['User']['ValidationRegex'] = '[a-z]';
And can I get feedback on these?
$Definition['UsernameError'] = "Username can only contain letters, numbers, and underscores, and must be between 3 and 15 characters long.";
$Configuration['Garden']['User']['ValidationLength'] = array(3,15)
(max username chararacters on twitter is 15)