diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/users.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engine/lib/users.php b/engine/lib/users.php index 525e66127..f83babc66 100644 --- a/engine/lib/users.php +++ b/engine/lib/users.php @@ -1123,8 +1123,12 @@ */
function validate_username($username)
{
- // Basic, check length
- if (strlen($username)<4) throw new RegistrationException(elgg_echo('registration:usernametooshort'));
+ // Basic, check length + if (!isset($CONFIG->minusername)) { + $CONFIG->minusername = 4; + } +
+ if (strlen($CONFIG->minusername)<4) throw new RegistrationException(elgg_echo('registration:usernametooshort'));
// Blacklist for bad characters (partially nicked from mediawiki)
|