isUnique valitadion not working cakephp 2x

1

In my template, I created a valitaion for my email field, where if you have another email it shows that it is not possible to register, but this validation is not working.

 public $validate = array(
    'nome' => array(
        'notempty' => array(
            'rule' => array('notempty'),
            'message' => 'Por favor, digite seu nome'
        ),
    ),
    'email' => array(
        'mail' => array(
            'rule' => array('email', true),
            'required' => false,
            'message' => 'Not correct e-mail!'),
        'isUnique' => array(
            'rule' => 'isUnique',
            'message' => 'E-mail was registered!')),         
);
    
asked by anonymous 04.02.2016 / 17:47

0 answers