username character limit
Best Answers
-
Linc Admin
I recommend doing 2 things then: 1) Add that to your config with the new values anyway and 2) Fixing it in /library/core/functions.validation.php in the ValidateUsernameRegex function (just search the file for "3,20").
That way when you upgrade it will overwrite your hack in #2 and replace it with the new one that uses the config setting.0
Answers
$Configuration['Garden']['User']['ValidationLength'] = '{3,20}';
where 3 is the minimum length and 20 is the max length. Modify as desired.
6dde25fc (Tim 'Thunderpuncher' Gunter 2011-05-31 11:23:44 -0400 126) C("Garden.User.ValidationLength","{3,20}"));
That way when you upgrade it will overwrite your hack in #2 and replace it with the new one that uses the config setting.