Tuesday, June 29, 2010

Re: How to Prevent Creation of Records in the Aro Table?

Make sure that you set the model id (the primary key of the user
record) before you use saveField!
Enjoy,
John

On Jun 28, 10:41 pm, randy <ran...@gmail.com> wrote:
> I am struggling with some Auth/Acl issues at the moment...specifically
> this.
>
> I have a basic Users/Groups setup, I'd like to NOT keep a record in
> the aros table for each user, and instead rely on Groups to determine
> permissions.
>
> I've got some code which creates a one-time password for Users when
> they've lost their password and would like to reset it. When I run
> this code and change their password using the saveField() method, I
> find it is writing a row to my aros table for the User.
>
> Is there a way to prevent this from happening?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: