Skip to content
Browse files

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.
  • Loading branch information...
1 parent 17d89a9 commit d6695e83e245d3d478ba4ecf1e3a2a5bb52665d3 @bharat bharat committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  modules/user/models/user.php
2  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]");

0 comments on commit d6695e8

Please sign in to comment.
Something went wrong with that request. Please try again.