diff --git a/admin/schema.php b/admin/schema.php
index cc687f2..fd51f70 100644
--- a/admin/schema.php
+++ b/admin/schema.php
@@ -298,7 +298,7 @@ $upgrade[] = Array('CreateTableSQL',Array(db_get_table('mantis_user_profile_tabl
 ",Array('mysql' => 'ENGINE=MyISAM', 'pgsql' => 'WITHOUT OIDS')));
 $upgrade[] = Array('CreateTableSQL',Array(db_get_table('mantis_user_table'),"
   id 			 I  UNSIGNED NOTNULL PRIMARY AUTOINCREMENT,
-  username 		C(32) NOTNULL DEFAULT \" '' \",
+  username 		C(255) NOTNULL DEFAULT \" '' \",
   realname 		C(64) NOTNULL DEFAULT \" '' \",
   email 		C(64) NOTNULL DEFAULT \" '' \",
   password 		C(32) NOTNULL DEFAULT \" '' \",
diff --git a/core/constant_inc.php b/core/constant_inc.php
index 9d8d85e..7a444db 100644
--- a/core/constant_inc.php
+++ b/core/constant_inc.php
@@ -474,6 +474,6 @@ define( 'PHPMAILER_METHOD_SENDMAIL',	1 );
 define( 'PHPMAILER_METHOD_SMTP',		2 );
 
 # Lengths - NOTE: these may represent hard-coded values in db schema and should not be changed.
-define( 'USERLEN', 32);
+define( 'USERLEN', 255);
 define( 'REALLEN', 64);
-define( 'PASSLEN', 32);
\ No newline at end of file
+define( 'PASSLEN', 32);
