1043 Posts in 379 Topics by 373 members
|Go to End|
29 December 2012 at 6:16pm
I need help on migrating users from a website built using symfony to silverstripe 3. I got a table of users from a symfony built website with sha1 hashed passwords and salts. I want to import the users to a freshly setup silverstripe 3 website. I tried to insert a sample entry to SS3s Member table by manually inserting the hashed password, the salt and changed the password encryption algorithm to sha1 but it didn't work. I also tried using Security::set_password_encryption_algorithm in my _config.php to override the password encryption from blowfish to sha1 but it doesn't seem to change the password algorithm.
I would really need help on this since I only have a few days left to deliver the project. Any ideas on how I should do the migration?
10 January 2013 at 8:13pm
Dig into the symfony code base to see how the authentication layer works compared to SilverStripe's PasswordEncryptor_PHPHash. It could do it salt + password vs password + salt or any other number of other differences.
10 January 2013 at 8:26pm
Thanks Willr. I got it working already. I extended PasswordEncryptor and swapped how the salt + the password was combined before hash.
|Go to Top|