Check out the fulcrum security stuff.. Some peple have recently started using it with Turbine 2.3.. I think it is much better....
> -----Original Message----- > From: Gedin Frederic [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 25, 2004 8:06 AM > To: Turbine Users List > Subject: Re: Renaming a user > > > David Demner wrote: > > >I have a minor issue with Turbine security. I can't rename > a user; when I > >go: > > > > User user = TurbineSecurity.getUser(oldLoginName); > > user.setName(newLoginName); > > TurbineSecurity.saveUser(user); > > > >I get an > org.apache.turbine.util.security.UnknownEntityException: Unknown > >user 'newLoginName' > > > >Is there any workaround (other than creating a new user > object, copying all > >the properties/groups/roles individually, saving this user, > and deleting the > >old user)? > > > >Thanks, > > > >David Demner > > > > > > > One way to do it is to define your own class of TurbineUser > which will > allow you to make all the changes you want in the database records. > However, be careful in your code when you rename an user > which is loged in. > Not a very academic solution but it may help you > > Regards > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
