[Security\Core] Deprecate passing $salt to BCryptPasswordEncoder::encodePassword()
This commit is contained in:
parent
7beea17a02
commit
770bd8cfda
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user