Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Removed PHP 5.1 check for PasswordEncryptor, use hash() always …

…as PHP 5.1 is no longer supported.
  • Loading branch information...
commit b92e4e01a95b131cf255a05f33eb2330f03d7654 1 parent fec5497
@halkyon halkyon authored
Showing with 1 addition and 7 deletions.
  1. +1 −7 security/PasswordEncryptor.php
View
8 security/PasswordEncryptor.php
@@ -139,13 +139,7 @@ function getAlgorithm() {
}
function encrypt($password, $salt = null, $member = null) {
- if(function_exists('hash')) {
- // Available in PHP 5.1+ only
- return hash($this->algorithm, $password . $salt);
- } else {
- // Fallback to global built-in methods
- return call_user_func($this->algorithm, $password . $salt);
- }
+ return hash($this->algorithm, $password . $salt);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.