From 1ab097d6317e07e8b0823d6369354039f183573a Mon Sep 17 00:00:00 2001 From: Carver Harrison Date: Wed, 28 Dec 2016 17:17:02 -0800 Subject: [PATCH] Changed max name length from 128 to 64 --- lib/users.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/users.php b/lib/users.php index 33193c6d9b..f5a9dc46e4 100644 --- a/lib/users.php +++ b/lib/users.php @@ -875,9 +875,9 @@ function validate_username($username) { throw new RegistrationException($msg); } - // username in the database has a limit of 128 characters - if (strlen($username) > 128) { - $msg = elgg_echo('registration:usernametoolong', array(128)); + // username in the database has a limit of 64 characters + if (strlen($username) > 64) { + $msg = elgg_echo('registration:usernametoolong', array(64)); throw new RegistrationException($msg); }