310 Posts in 82 Topics by 148 members
Migrating a Site to Silverstripe
What you need to know when migrating your existing site to SilverStripe.
|Go to End|
28 April 2011 at 9:31pm
While migrating users from a foreign system into the Member table, a bug surfaced in the way password hashes are handled.
It seems Security::encrypt_password() doesn't differentiate between:
1. plaintext passwords needing hashing for the first time (`Salt` is NULL)
2. hashed but unsalted passwords (`Salt` is empty string '')
This can be fixed in:
$salt = ($salt) ? $salt : $e->salt($password);
$salt = isset ($salt) ? $salt : $e->salt($password);
|Go to Top|