From 16dbbdb34cfaaf27d367f77395c72fd5676d9a22 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Mon, 6 Jan 2020 11:18:16 +0100 Subject: [ticket/16293] Do not update to hashes that don't support combined hashing PHPBB3-16293 --- phpBB/phpbb/cron/task/core/update_hashes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/phpbb/cron/task/core/update_hashes.php b/phpBB/phpbb/cron/task/core/update_hashes.php index ba095abc8b..9e938f74dd 100644 --- a/phpBB/phpbb/cron/task/core/update_hashes.php +++ b/phpBB/phpbb/cron/task/core/update_hashes.php @@ -56,7 +56,7 @@ class update_hashes extends \phpbb\cron\task\base foreach ($defaults as $type) { - if ($hashing_algorithms[$type]->is_supported()) + if ($hashing_algorithms[$type]->is_supported() && !$hashing_algorithms[$type] instanceof \phpbb\passwords\driver\base_native) { $this->default_type = $type; break; -- cgit v1.2.1