Skip to content

Commit

Permalink
adding a max length of 254 to user emails (refs #4011)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeelot committed Jul 11, 2011
1 parent 5777dbe commit e124ee5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions classes/model/auth/user.php
Expand Up @@ -41,6 +41,7 @@ public function rules()
'email' => array(
array('not_empty'),
array('email'),
array('max_length', array(':value', 254)),
array(array($this, 'unique'), array('email', ':value')),
),
);
Expand Down

0 comments on commit e124ee5

Please sign in to comment.