Index: trunk/core/units/users/users_config.php =================================================================== diff -u -N -r7997 -r8015 --- trunk/core/units/users/users_config.php (.../users_config.php) (revision 7997) +++ trunk/core/units/users/users_config.php (.../users_config.php) (revision 8015) @@ -130,23 +130,23 @@ 'Fields' => Array ( 'PortalUserId' => Array('type' => 'int', 'not_null' => 1, 'default' => 0), - 'Login' => Array('type' => 'string', 'unique'=>Array('Login'), 'default' => '','required'=>1, 'error_msgs' => Array('unique'=>'!lu_user_already_exist!')), + 'Login' => Array('type' => 'string', 'unique'=>Array('Login'), 'default' => null,'required'=>1, 'error_msgs' => Array('unique'=>'!lu_user_already_exist!')), 'Password' => Array('type' => 'string', 'formatter' => 'kPasswordFormatter', 'encryption_method' => 'md5', 'verify_field' => 'VerifyPassword', 'skip_empty' => 1, 'default' => md5('') ), - 'FirstName' => Array('type' => 'string','default' => ''), - 'LastName' => Array('type' => 'string','default' => ''), + 'FirstName' => Array('type' => 'string','default' => null), + 'LastName' => Array('type' => 'string','default' => null), 'Company' => Array('type' => 'string','not_null' => '1','default' => ''), 'Email' => Array('type' => 'string', 'formatter'=>'kFormatter', 'regexp'=>'/^[_a-zA-Z0-9-\.]+@[a-zA-Z0-9-\.]+\.[a-z]{2,4}$/', 'sample_value' => 'email@domain.com', 'unique'=>Array('Email'), 'not_null' => '1', 'required'=>1, 'default' => '', 'error_msgs' => Array('invalid_format'=>'!la_invalid_email!', 'unique'=>'!lu_email_already_exist!') ), 'CreatedOn' => Array('type'=>'int', 'formatter' => 'kDateFormatter', 'default' => '#NOW#'), - 'Phone' => Array('type' => 'string','default' => ''), - 'Fax' => Array('type' => 'string','not_null' => '1','default' => ''), - 'Street' => Array('type' => 'string','default' => ''), + 'Phone' => Array('type' => 'string','default' => null), + 'Fax' => Array('type' => 'string', 'not_null' => 1, 'default' => ''), + 'Street' => Array('type' => 'string', 'default' => null), 'Street2' => Array('type' => 'string', 'not_null' => '1', 'default' => ''), - 'City' => Array('type' => 'string','default' => ''), + 'City' => Array('type' => 'string','default' => null), 'State' => Array('type' => 'string', 'formatter'=>'kOptionsFormatter', 'options' => Array(), 'option_key_field'=>'DestAbbr','option_title_field'=>'Translation', 'not_null' => '1','default' => ''), - 'Zip' => Array('type' => 'string','default' => ''), + 'Zip' => Array('type' => 'string','default' => null), 'Country' => Array('type' => 'string', 'formatter'=>'kOptionsFormatter', 'options_sql'=>'SELECT %1$s FROM '.TABLE_PREFIX.'StdDestinations @@ -159,15 +159,15 @@ ORDER BY Translation', 'option_key_field'=>'DestAbbr','option_title_field'=>'Translation', 'not_null' => '1','default' => ''), - 'ResourceId' => Array('type' => 'int','not_null' => '1','default' => '0'), + 'ResourceId' => Array('type' => 'int','not_null' => 1, 'default' => 0), 'Status' => Array('type' => 'int', 'formatter'=>'kOptionsFormatter', 'options'=>Array(1=>'la_Enabled', 0=>'la_Disabled', 2=>'la_Pending'), 'use_phrases'=>1, 'not_null' => '1','default' => 2), 'Modified' => Array('type' => 'int', 'formatter'=>'kDateFormatter', 'not_null' => '1', 'default' => '#NOW#' ), - 'dob' => Array('type'=>'int', 'formatter' => 'kDateFormatter', 'default' => '', 'required'=>1), + 'dob' => Array('type'=>'int', 'formatter' => 'kDateFormatter', 'default' => null, 'required'=>1), 'tz' => Array('type' => 'int','default' => 0), - 'ip' => Array('type' => 'string','default' => ''), - 'IsBanned' => Array('type' => 'int','not_null' => '1','default' => '0'), + 'ip' => Array('type' => 'string','default' => null), + 'IsBanned' => Array('type' => 'int','not_null' => 1, 'default' => 0), 'PassResetTime' => Array('type' => 'int','default' => null), - 'PwResetConfirm' => Array('type' => 'string','default' => ''), + 'PwResetConfirm' => Array('type' => 'string','default' => null), 'PwRequestTime' => Array('type' => 'int','default' => null), 'MinPwResetDelay' => Array('type' => 'int', 'formatter' => 'kOptionsFormatter', 'options' => Array(300 => '5', 600 => '10', 900 => '15', 1800 => '30', 3600 => '60'), 'use_phrases' => 0, 'not_null' => '1', 'default' => 1800), ),