Index: branches/5.1.x/core/units/users/users_config.php =================================================================== diff -u -N -r14241 -r14341 --- branches/5.1.x/core/units/users/users_config.php (.../users_config.php) (revision 14241) +++ branches/5.1.x/core/units/users/users_config.php (.../users_config.php) (revision 14341) @@ -1,6 +1,6 @@ Array ( 'PortalUserId' => Array ('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Login' => Array ('type' => 'string', 'unique'=>Array('Login'), 'default' => null,'required'=>1, 'error_msgs' => Array('unique'=>'!lu_user_already_exist!', 'banned' => '!la_error_UserBanned!')), + 'Login' => Array ( + 'type' => 'string', 'max_len' => 255, + 'unique' => Array ('Login'), + 'error_msgs' => Array ('unique' => '!lu_user_already_exist!', 'banned' => '!la_error_UserBanned!'), + 'required' => 1, 'default' => NULL, + ), 'Password' => Array ('type' => 'string', 'formatter' => 'kPasswordFormatter', 'encryption_method' => 'md5', 'verify_field' => 'VerifyPassword', 'skip_empty' => 1, 'default' => md5('')), 'FirstName' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''), 'LastName' => Array ('type' => 'string', 'not_null' => 1, 'default' => ''),