Re: TorqueUser synchronization problem

Thomas Vandahl <[email protected]> Wed, 11 Jan 2012 20:36:59 +0100
Newsgroups gmane.comp.jakarta.turbine.user
Message-ID <[email protected]>
On 11.01.12 20:04, Weffen Cheung wrote:
> Sometimes I update a user record not only after the user login. For example, I want to update userB's record when userA login. For this case, we cannot use data.getUser().save(), is it right?

Well, there is TurbineSecurity.getUser(userName) which gives you any
user from your backend. The clean solution would be to use
TurbineSecurity.saveUser(user) then to make your modifications persistent.

The only remaining question would be what userB is going to say if userA
modifies his email address, IOW a permission issue.

Bye, Thomas.