1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-06 15:45:34 +02:00

[feature/passwords] Use correct prefix for bcrypt type

PHPBB3-11610
This commit is contained in:
Marc Alexander 2013-06-15 12:09:00 +02:00
parent 7a526284d3
commit c9afda5a65

View File

@ -45,7 +45,7 @@ class phpbb_crypto_driver_bcrypt extends phpbb_crypto_driver_base
{
// The 2x and 2y prefixes of bcrypt might not be supported
// Revert to 2a if this is the case
$prefix = (!$this->is_supported()) ? '$2a$' : self::PREFIX;
$prefix = (!$this->is_supported()) ? '$2a$' : $this->get_prefix();
if ($salt == '')
{