diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-28 17:13:23 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-28 17:13:23 -0700 |
commit | 1d3651b3292a2ea4b63a6c19bc0a4f58b9efac10 (patch) | |
tree | 884db6701fc2e7062fb0f3e9e9c90a003bb3f6b1 | |
parent | 7ea13b3869dee33804606a17488bb1cd26759bdb (diff) |
Make the user name a required field. Fixes ticket #852
-rw-r--r-- | modules/user/models/user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/models/user.php b/modules/user/models/user.php index c51fc720..184ce70a 100644 --- a/modules/user/models/user.php +++ b/modules/user/models/user.php @@ -21,7 +21,7 @@ class User_Model extends ORM implements User_Definition { protected $has_and_belongs_to_many = array("groups"); var $rules = array( - "name" => "length[1,32]", + "name" => "required|length[1,32]", "full_name" => "length[0,255]", "email" => "valid_email|length[1,255]", "password" => "length[1,40]", |