mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Only recommand for php-sodium on >= PHP 7.4
This is because php-sodium will solve the missing PASSWORD_ARGON2I constant problem only on >= php 7.4, previously argon2 wasn't part of the standard extension and was disabled on Centos/RHEL. So installing php-sodium on php 7.2 for example wouldn't hide the message. Tested on Fedora with php 7.4, Centos 7 with php 7.2, Centos 8 with php 7.2 and openSUSE with php 7.4. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
parent
30d8704bf3
commit
07ccccecad
1 changed files with 5 additions and 1 deletions
|
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue