Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2021-08-31 09:59:27 +0300
committerGitHub <noreply@github.com>2021-08-31 09:59:27 +0300
commit506b411dfc43229633ce0a4680334ed7ef6e5e5d (patch)
tree285f00b9768afce3ad8a630c948fd91caf5aa798 /apps/settings
parent71c9f4c8d50275959b5bc5670109d99da12683bb (diff)
parent07ccccecad473fef8f622689855d6aa0fdbf16ed (diff)
Merge pull request #28332 from nextcloud/work/carl/argon2i2
Only recommand for php-sodium on >= PHP 7.4
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index 21b05d98979..3e239c15c1b 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -627,7 +627,11 @@ Raw output
}
}
- if (!defined('PASSWORD_ARGON2I')) {
+ if (!defined('PASSWORD_ARGON2I') && PHP_VERSION_ID >= 70400) {
+ // Installing php-sodium on >=php7.4 will provide PASSWORD_ARGON2I
+ // on previous version argon2 wasn't part of the "standard" extension
+ // and RedHat disabled it so even installing php-sodium won't provide argon2i
+ // support in password_hash/password_verify.
$recommendedPHPModules[] = 'sodium';
}