Skip to content

Commit

Permalink
Make email a required field. We're using the Kohana default error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bharat committed Nov 21, 2009
1 parent 17d89a9 commit d6695e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/user/models/user.php
Expand Up @@ -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]");
Expand Down

0 comments on commit d6695e8

Please sign in to comment.