On Ma, 2006-08-07 at 11:24 +0200, Lorenzo Dalvit wrote:
> Hi there
>
Hi Lorenzo
> I have got quite a number of users (250+) I would like to enrol. I have
> all their usernames and passwords. Is there a nice and easy way to do
> this? Do I need to encrypt all the passwords or is there a way to fit
> them in the users.prefs file unencrypted? In that case, how do I do that?
>
> Thanks
>
> Lorenzo
If you know some scripting language, it won't be too difficult. To
generate the password hash, you can use one of the following:
python:
def md5hexdigest(text):
if isinstance(text, unicode): text = text.encode('utf8')
return md5.md5(text).hexdigest()
bash:
echo -n $password | md5sum
Just take care to specify the other fields as well. You'll need
* activated
* email
* name
* passwordhash
Remember to do the indentation like pootle does.
I hope this helps
F
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle