Default to best supported password algorithm, although we never fell back to MD5 anyway #2556

This commit is contained in:
Kijin Sung 2025-05-22 22:35:47 +09:00
parent 3c0048d4ba
commit 6a29c54e78

View file

@ -128,12 +128,12 @@ class Password
$algorithm = $config->password_hashing_algorithm ?? '';
if (strval($algorithm) === '')
{
$algorithm = 'md5';
$algorithm = self::getBestSupportedAlgorithm();
}
}
else
{
$algorithm = 'md5';
$algorithm = self::getBestSupportedAlgorithm();
}
return $algorithm;
}