Hello All,
I have been creating users via the following code:
require_once('groups/engine/start.php');
$guid = register_user($username, $password, $username, $login, true);
$new_user = get_entity($guid);
$new_user->access_id = 2;
$new_user->admin_created = true;
$new_user->enable();
But I have a number of older users that I would like to create on my elgg community.
The user's passwords are recorded using MD5 (same as elgg), but I cannot use the above scripts to create these. Basically I need to nkow how I can use my current user records to create elgg accounts for them using the same username, email and password they have for my main site. I do not have their passwords in clear text (nor do I want them). How I can I go about doing this (setting the correct salt values, etc).
Please help!!!
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Cash@costelloc
Cash - 0 likes
- djsomersmusic@djsomersmusic
djsomersmusic - 0 likes
- djsomersmusic@djsomersmusic
djsomersmusic - 0 likes
- Cash@costelloc
Cash - 0 likes
- djsomersmusic@djsomersmusic
djsomersmusic - 0 likes
You must log in to post replies.Were the passwords salted or were they just a plain md5?
Hi Cash,
Thanks for the reply. The passwords are plain MD5.
Is it not a case that if the salt is left blank, then I can use the plain MD5 passwords as Elgg wil just check that the password+salt = password? Then when a user logs in the salt will be set and everything should be okay?
blank salt should work
Cheers Cash, just needed to hear it to be sure :)