You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regular expression: User::validates("email",array("format" =>"^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$")) There are options to allow blank and null values: "allow_blank"=>true and "allow_null"=>true, after the "format" option like User::validates("zip",array("format"=>"^[0-9]{5}-[0-9]{3}$","allow_null"=>true))
Uniqueness: User::validates("email",array("uniqueness"=>true)) There are options to allow blank and null values: "allow_blank"=>true and "allow_null"=>true, after the "uniqueness" option like User::validates("email",array("uniqueness"=>true,"allow_null"=>true))