diff options
author | Graham Campbell <graham@mineuk.com> | 2014-11-30 21:18:40 +0000 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2014-12-30 11:17:11 +0100 |
commit | d278266e82082b8605dffb29151bd77b9f3d334f (patch) | |
tree | f03b1102eb11208ab010e3f57ba036e555a167e6 /Core/Encoder/BCryptPasswordEncoder.php | |
parent | cf187660de37c0dc7a4dec4475845c314e8fb91f (diff) | |
download | symfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.zip symfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.tar.gz symfony-security-d278266e82082b8605dffb29151bd77b9f3d334f.tar.bz2 |
[3.0] Removed some old hacks
Diffstat (limited to 'Core/Encoder/BCryptPasswordEncoder.php')
-rw-r--r-- | Core/Encoder/BCryptPasswordEncoder.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Core/Encoder/BCryptPasswordEncoder.php b/Core/Encoder/BCryptPasswordEncoder.php index d2b0319..c0c8fe0 100644 --- a/Core/Encoder/BCryptPasswordEncoder.php +++ b/Core/Encoder/BCryptPasswordEncoder.php @@ -34,10 +34,6 @@ class BCryptPasswordEncoder extends BasePasswordEncoder */ public function __construct($cost) { - if (!function_exists('password_hash')) { - throw new \RuntimeException('To use the BCrypt encoder, you need to upgrade to PHP 5.5 or install the "ircmaxell/password-compat" via Composer.'); - } - $cost = (int) $cost; if ($cost < 4 || $cost > 31) { throw new \InvalidArgumentException('Cost must be in the range of 4-31.'); |