Re: Updating user values in Auth component

2010-05-01 Thread WhyNotSmile
Thanks to both of you. That's helpful. On 28 Apr, 20:08, Miles J mileswjohn...@gmail.com wrote: I prefer this method: http://www.milesj.me/blog/read/31/Refreshing-The-Auths-Session On Apr 28, 9:22 am, John Andersen j.andersen...@gmail.com wrote: Without changing anything in the Auth

Updating user values in Auth component

2010-04-28 Thread WhyNotSmile
I'm using the built-in Auth component with CakePHP. In part of my site, I allow my user to update their details (e.g. email address). When I then retrieve the user information from the Auth component (using $this-Auth-user()), the details are still the old ones. Is there a way to update the

Re: Updating user values in Auth component

2010-04-28 Thread John Andersen
Without changing anything in the Auth component, I do think that you could redo the login of the current user, when you have updated the users information - for example: [code] $this-Auth-login( $this-Auth-user() ); [/code] That should update the user information in the Auth session key. I

Re: Updating user values in Auth component

2010-04-28 Thread Miles J
I prefer this method: http://www.milesj.me/blog/read/31/Refreshing-The-Auths-Session On Apr 28, 9:22 am, John Andersen j.andersen...@gmail.com wrote: Without changing anything in the Auth component, I do think that you could redo the login of the current user, when you have updated the users