Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow password up to 64 chars
This enables future use of cryptographic hash algorithms such as bcrypt,
Whirlpool, sha512 or RipeMD.

Signed-off-by: Paul Richards <paul@mantisforge.org>
  • Loading branch information
dregad authored and mantis committed Sep 1, 2014
1 parent e6f628c commit 5ff2500
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 @@ -741,5 +741,6 @@ function installer_db_now() {
$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 \" '' \"" ) );
$g_upgrade[197] = array( 'AlterColumnSQL', array( db_get_table( 'user' ), "realname C(255) $t_notnull DEFAULT \" '' \"" ) );
$g_upgrade[198] = array( 'AlterColumnSQL', array( db_get_table( 'user' ), "password C(64) $t_notnull DEFAULT \" '' \"" ) );

# Release marker: 1.3.0
2 changes: 1 addition & 1 deletion core/constant_inc.php
Expand Up @@ -561,7 +561,7 @@
# Lengths - NOTE: these may represent hard-coded values in db schema and should not be changed.
define( 'DB_FIELD_SIZE_USERNAME', 255 );
define( 'DB_FIELD_SIZE_REALNAME', 255 );
define( 'DB_FIELD_SIZE_PASSWORD', 32 );
define( 'DB_FIELD_SIZE_PASSWORD', 64 );

# Maximum size for the user's password when storing it as a hash
define( 'PASSWORD_MAX_SIZE_BEFORE_HASH', 1024 );
Expand Down

0 comments on commit 5ff2500

Please sign in to comment.