On Mon, Jul 25, 2011 at 10:42 AM, Stefan Hoth <[email protected]> wrote:

> iirc there is the possibility to add users via shell script. This might a
> viable alternative and more fool-proof than going around the system.


If you really want to know how the hashing is performed, use the source:
https://gitorious.org/gitorious/mainline/blobs/master/app/models/user.rb#line150

However, don't. As Stefan suggests, a shell script makes more sense. In
fact, there's a script in script/create_admin that illustrates how to create
a user from Ruby.

Cheers,
- Marius

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to