turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Pugh" <ep...@upstate.com>
Subject RE: Renaming a user
Date Sun, 25 Jan 2004 10:42:53 GMT
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:frederic.gedin@jaluna.com]
> 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: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Mime
View raw message