Index: branches/5.0.x/core/units/users/users_config.php =================================================================== diff -u -r12117 -r12208 --- branches/5.0.x/core/units/users/users_config.php (.../users_config.php) (revision 12117) +++ branches/5.0.x/core/units/users/users_config.php (.../users_config.php) (revision 12208) @@ -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!')), - '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' => ''), - 'Company' => Array('type' => 'string','not_null' => '1','default' => ''), - 'Email' => Array('type' => 'string', 'formatter'=>'kFormatter', 'regexp'=>'/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', '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!') ), + '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!')), + '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' => ''), + 'Company' => Array ('type' => 'string','not_null' => '1','default' => ''), + 'Email' => Array ( + 'type' => 'string', 'formatter' => 'kFormatter', + 'regexp'=>'/^(' . REGEX_EMAIL_USER . '@' . REGEX_EMAIL_DOMAIN . ')$/i', + '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' => null), 'Fax' => Array('type' => 'string', 'not_null' => 1, 'default' => ''),