Use correct config variable name in encrypt_password

Use correct config variable name in encrypt_password
Fixes https://github.com/silverstripe/sapphire/issues/1709
This commit is contained in:
Will Morgan 2013-04-27 13:22:00 +02:00
parent 72a7f0e672
commit c61f050757

View File

@ -850,7 +850,7 @@ class Security extends Controller {
*/
public static function encrypt_password($password, $salt = null, $algorithm = null, $member = null) {
// Fall back to the default encryption algorithm
if(!$algorithm) $algorithm = self::config()->encryption_algorithm;
if(!$algorithm) $algorithm = self::config()->password_encryption_algorithm;
$e = PasswordEncryptor::create_for_algorithm($algorithm);