try e( $form->input( 'Model.field', array( 'type'=>'password', ... ) );
pbland wrote:
>
>
> I'm also having the same problem in 1.2.0.5427. If in my view I change
> form->password to form->input, then the error message displays. How
> are people validating passwords and displaying error messages?
>
> Thanks,
> Paul
>
> On Jul 18, 7:37 pm, citrus <[EMAIL PROTECTED]> wrote:
>> I also use Cake 1.2.0.5427alpha.
>>
>> Mypasswordvalidation doesn't work, either. Even if I try the
>> simplest rule ever: VALID_NOT_EMPTY. No error message is fired when I
>> leave thepasswordfield blank.
>>
>> On Jul 18, 4:58 pm, pihentagy <[EMAIL PROTECTED]> wrote:
>>
>> > Hi!
>>
>> > I've validation rules in my model:
>>
>> > var $validate= array(
>> > 'p4ssword' => array(
>> > 'length' =>
>> array('rule'=>array('minLength',8)),
>> > 'forbidden'=>array('rule'=>'notForbiddenPwd'),
>> > 'similar'=>array('rule'=>'notSimilarPwd'),
>> > ),
>> > 'confirm_p4ssword'=>array(
>> > 'match' => array('rule'=>'confirm_password')
>> > ),
>> > );
>>
>> > and
>> > if($this->User->save($this->data, true,
>> array('p4ssword'))) {
>> > in my controller.
>>
>> > Shouldn't this line fires validations? Putting log messages to the
>> > validation methods, I cannot see the those messages in the log, so
>> > something is wrong :(
>>
>> > Can anybody help figure out what's going on?
>>
>> > Using cake_1.2.0.5427alpha
>>
>> > thanks
>> > Gergo
>
>
> >
>
>
--
View this message in context:
http://www.nabble.com/Validation-tf4102304.html#a12010224
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---