summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-11-21 11:17:38 -0800
committerBharat Mediratta <bharat@menalto.com>2009-11-21 11:17:38 -0800
commitd6695e83e245d3d478ba4ecf1e3a2a5bb52665d3 (patch)
tree575362f4c0fc0ce2aa586805e4ba1343777bcad3 /modules
parent17d89a9df15720ad235835dd04f26cca4bcbfce8 (diff)
Make email a required field. We're using the Kohana default error
messages when this fails, not the Gallery translation system so this is not a great solution. However, it's the same as the other model-based rules we have currently so it's no worse. Fixes ticket #897.
Diffstat (limited to 'modules')
-rw-r--r--modules/user/models/user.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/models/user.php b/modules/user/models/user.php
index 184ce70a..bd61def8 100644
--- a/modules/user/models/user.php
+++ b/modules/user/models/user.php
@@ -23,7 +23,7 @@ class User_Model extends ORM implements User_Definition {
var $rules = array(
"name" => "required|length[1,32]",
"full_name" => "length[0,255]",
- "email" => "valid_email|length[1,255]",
+ "email" => "required|valid_email|length[1,255]",
"password" => "length[1,40]",
"url" => "valid_url",
"locale" => "length[2,10]");