diff options
author | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-11-04 14:11:51 +0100 |
---|---|---|
committer | Nicolas Grekas <nicolas.grekas@gmail.com> | 2015-11-04 14:11:51 +0100 |
commit | 18ad89207b012a47457f4d0d7c6aaa57cb1f926c (patch) | |
tree | 0b98c57800493f3fa841d765bcb925926f510682 | |
parent | 7c8e60751a6ea3ffd7bbf08a599bebfe32d56fa5 (diff) | |
download | symfony-security-18ad89207b012a47457f4d0d7c6aaa57cb1f926c.zip symfony-security-18ad89207b012a47457f4d0d7c6aaa57cb1f926c.tar.gz symfony-security-18ad89207b012a47457f4d0d7c6aaa57cb1f926c.tar.bz2 |
[Security\Core] Deprecate passing $salt to BCryptPasswordEncoder::encodePassword()
-rw-r--r-- | Core/Encoder/BCryptPasswordEncoder.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Core/Encoder/BCryptPasswordEncoder.php b/Core/Encoder/BCryptPasswordEncoder.php index c0c8fe0..96893ab 100644 --- a/Core/Encoder/BCryptPasswordEncoder.php +++ b/Core/Encoder/BCryptPasswordEncoder.php @@ -71,6 +71,8 @@ class BCryptPasswordEncoder extends BasePasswordEncoder $options = array('cost' => $this->cost); if ($salt) { + @trigger_error('Passing a $salt to '.__METHOD__.'() is deprecated since version 2.8 and will be ignored in 3.0.', E_USER_DEPRECATED); + $options['salt'] = $salt; } |