You should use add a field i.e 'change_password' to the model's
validation array. You can then use the Security::hash to hash that
value for saving in the action.
http://www.littlehart.net/atthekeyboard/2008/01/22/simple-user-registration-in-cakephp-12-part-ii/
should help you somewhat.
The artic
Does anyone have any idea?
On 7 abr, 20:25, elHobbit <[EMAIL PROTECTED]> wrote:
> Thanks b logica.
>
> But, I really need to use the validation rules in the User model.
> I'll try to overwrite the validation rules for the fields I'm not
> using in this view.
> Anyway, I think the problem isn't th
Thanks b logica.
But, I really need to use the validation rules in the User model.
I'll try to overwrite the validation rules for the fields I'm not
using in this view.
Anyway, I think the problem isn't that, because with different fields
the form works ok.
Again, thanks for your help. :)
On
If the problem is that Cake is trying to validate User when
unnecessary you could try what Dardo just suggested for a similar
problem I was having. Put this in your edit() action:
$this->User->validate = array();
On Mon, Apr 7, 2008 at 4:42 PM, elHobbit <[EMAIL PROTECTED]> wrote:
>
> First, exc
First, excuse me for my poor english.
I'm using Cake 1.2.6311. I'm having a weird problem validating some
fields from my model.
The situation is like that:
- One model "users" with validation rules.
- "Users" controller with 2 basic actions: 'edit' & 'changepassword'.
- The problem: in the acti