Skip to content

Commit 506b411

Browse files
Merge pull request #28332 from nextcloud/work/carl/argon2i2
Only recommand for php-sodium on >= PHP 7.4
2 parents 71c9f4c + 07cccce commit 506b411

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/settings/lib/Controller/CheckSetupController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,11 @@ protected function hasRecommendedPHPModules(): array {
627627
}
628628
}
629629

630-
if (!defined('PASSWORD_ARGON2I')) {
630+
if (!defined('PASSWORD_ARGON2I') && PHP_VERSION_ID >= 70400) {
631+
// Installing php-sodium on >=php7.4 will provide PASSWORD_ARGON2I
632+
// on previous version argon2 wasn't part of the "standard" extension
633+
// and RedHat disabled it so even installing php-sodium won't provide argon2i
634+
// support in password_hash/password_verify.
631635
$recommendedPHPModules[] = 'sodium';
632636
}
633637

0 commit comments

Comments
 (0)