You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by James Coltman <ja...@majorband.co.uk> on 2001/04/26 17:34:56 UTC

Create a user and setting roles at the same time

Is there a way to create a new user entry on the database and set the their
role at the same time.
Currently I have to:

1.Add a new user.
2.Authenticate that same user in order to return a user object that contains
a user_id.
3.Pass the authenticated user to the grant method.

To me it seems a bit pointless to authenticate a user I have just entered.
Plus it means I have
an unnecessary database hit. Is there a different way of adding a user and
granting roles with out authenticating
in-between?

Any help would much appreciated.

Cheers

James Coltman


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