Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-13 Thread Sergey Dmitriev
What do you mean? Answers really helped me. Sergey 2012/7/12 Tomas Doran bobtf...@bobtfish.net On 12 Jul 2012, at 07:18, Sergey Dmitriev wrote: Thank you Lu. BTW, set_authenticated is marked as internal method in documentation, so it could be changed some day. Well volunteered?

Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-13 Thread Dimitar Petrov
I think that the method is used by many people and it was discussed that the set_authenticated shouldn't be documented as internal... so I guess what Tom means is well volunteered for fixing the documentation :) On Fri, Jul 13, 2012 at 10:36 AM, Sergey Dmitriev sergey.program...@gmail.com wrote:

Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-13 Thread Sergey Dmitriev
Ok, if so, no problem, i just need hint like 'how to do it right way'. :) 2012/7/13 Dimitar Petrov mita...@gmail.com I think that the method is used by many people and it was discussed that the set_authenticated shouldn't be documented as internal... so I guess what Tom means is well

Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-13 Thread Tomas Doran
On 13 Jul 2012, at 11:51, Sergey Dmitriev wrote: Ok, if so, no problem, i just need hint like 'how to do it right way'. :) Clone the git repository, make a patch, mail it to the list :) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re [Catalyst] How to update data of already logged-in user?

2012-07-12 Thread Sergey Dmitriev
Thank you Lu. BTW, set_authenticated is marked as internal method in documentation, so it could be changed some day. 2012/7/12 鲁国庆(Jack Lu) luguoq...@gmail.com my $user = $c-find_user({ user_id = $c-user-user_id }); $c-set_authenticated($user); $user-email will be the new email.

Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-12 Thread Tomas Doran
On 12 Jul 2012, at 07:18, Sergey Dmitriev wrote: Thank you Lu. BTW, set_authenticated is marked as internal method in documentation, so it could be changed some day. Well volunteered? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] How to update data of already logged-in user?

2012-07-11 Thread David Schmidt
The object returned by $c-user is not what you are looking for. I assume you are using DBIC. Get the real user object with $c-user-get_object() http://search.cpan.org/~bobtfish/Catalyst-Plugin-Authentication-0.10021/lib/Catalyst/Authentication/User.pm#get_object(_) cheers david On 11 July

Re: [Catalyst] How to update data of already logged-in user?

2012-07-11 Thread Sergey Dmitriev
Thank you David! 2012/7/11 David Schmidt davew...@gmx.at The object returned by $c-user is not what you are looking for. I assume you are using DBIC. Get the real user object with $c-user-get_object()

Re: [Catalyst] How to update data of already logged-in user?

2012-07-11 Thread 鲁国庆(Jack Lu)
my $user = $c-find_user({ user_id = $c-user-user_id }); $c-set_authenticated($user); $user-email will be the new email. On Thu, Jul 12, 2012 at 2:28 AM, Sergey Dmitriev sergey.program...@gmail.com wrote: Thank you David! 2012/7/11 David Schmidt davew...@gmx.at The object returned