Skip to content

Commit

Permalink
Fix #8017: allow username up to 255 chars
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Richards <paul@mantisforge.org>
  • Loading branch information
dregad authored and mantis committed Sep 1, 2014
1 parent ea481bd commit d103c02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions admin/schema.php
Expand Up @@ -739,5 +739,6 @@ function installer_db_now() {
$g_upgrade[193] = array( 'UpdateFunction', 'check_config_serialization', array() );
$g_upgrade[194] = array( 'UpdateFunction', 'check_token_serialization', array() );
$g_upgrade[195] = array( 'UpdateFunction', 'check_filters_serialization', array() );
$g_upgrade[196] = array( 'AlterColumnSQL', array( db_get_table( 'user' ), "username C(255) $t_notnull DEFAULT \" '' \"" ) );

# Release marker: 1.3.0
2 changes: 1 addition & 1 deletion core/constant_inc.php
Expand Up @@ -559,7 +559,7 @@
define( 'PHPMAILER_METHOD_SMTP', 2 );

# Lengths - NOTE: these may represent hard-coded values in db schema and should not be changed.
define( 'DB_FIELD_SIZE_USERNAME', 32 );
define( 'DB_FIELD_SIZE_USERNAME', 255 );
define( 'DB_FIELD_SIZE_REALNAME', 64 );
define( 'DB_FIELD_SIZE_PASSWORD', 32 );

Expand Down

0 comments on commit d103c02

Please sign in to comment.