mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
72a7f0e672
commit
c61f050757
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user