1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-23 00:32:57 +02:00

[ticket/14733] Extend passwords driver_interface in rehashable_driver_interface

PHPBB3-14733
This commit is contained in:
Marc Alexander
2016-09-25 20:32:42 +02:00
parent d15269950d
commit 722639a0e2
2 changed files with 9 additions and 54 deletions

View File

@@ -297,7 +297,14 @@ class manager
}
else
{
$this->convert_flag = $stored_hash_type->needs_rehash($hash);
if ($stored_hash_type instanceof driver\rehashable_driver_interface)
{
$this->convert_flag = $stored_hash_type->needs_rehash($hash);
}
else
{
$this->convert_flag = false;
}
}
// Check all legacy hash types if prefix is $CP$