On Mon, 2005-11-28 at 12:56, Greg Hamer wrote:
> Christer,
> 
> I think the tables that get inserts for new users are rolleruser and website 
> (at least in Roller 1.x).  Perhaps others could please jump in if I am 
> missing anything (or to better explain the process).

in Roller 2.0 you only need to insert a row into the rolleruser table.  that 
will create the user account and allow the user to login.  after that the user 
would be allowed to create any weblogs they want to have themselves.

everything else is correct.

-- Allen

> 
> Encryption depends on settings in roller.properties.  See 
> ConfigurationGuide_2.x under heading "Default configuration".  In all 
> likelihood your settings are:
> passwds.encryption.enabled=true
> passwds.encryption.algorithm=SHAIn the code, what is ultimately getting 
> called is org.roller.util.Utilities method encodePassword()
> 
> You might also find helpful Dave Johnson's blog post from earlier this month 
> "Scripting Roller with Groovy".  Specifically "Example #1: Creating a new 
> blog".  I believe these Groovy examples use Roller 2.0. 
> 
>             hth,
> 
>             g
> 
> ----- Original Message ----- 
> From: "Christer Nordvik" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Monday, November 28, 2005 12:19 PM
> Subject: How to add rolleruser from external application
> 
> 
> Hi again.
> 
> Since I didn't get any response on my last email, I'll try to simplify
> the question :)
> 
> How can I add a user to the Roller database from my own application?
> 
> What tables do I need to do a insert in, and how must I encode the
> password? I noticed that the password is encrypted so I guess I need
> to use the same algorithm to encode the password as Roller does.
> 
> Any pointers would be very helpful!
> 
> Cheers,
> Christer

Reply via email to