Skip to content

Commit

Permalink
BUGFIX Remove use of encryptPasswords; use PasswordEncryptor_None
Browse files Browse the repository at this point in the history
instead
  • Loading branch information
Sean Harvey committed Mar 9, 2012
1 parent d0a0df0 commit 2644cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/Security.php
Expand Up @@ -771,7 +771,7 @@ static function encrypt_password($password, $salt = null, $algorithm = null, $me
// if the password is empty, don't encrypt
strlen(trim($password)) == 0
// if no algorithm is provided and no default is set, don't encrypt
|| (!$algorithm && self::$encryptPasswords == false)
|| (!$algorithm)
) {
$algorithm = 'none';
} else {
Expand Down

0 comments on commit 2644cbb

Please sign in to comment.