From a5ae0524e8eaf70f673344907738e3820532b0fe Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Fri, 30 Jul 2021 14:34:05 +0200 Subject: [PATCH] Check that php was compiled with argon2 support or that the php-sodium extensions is installed Signed-off-by: Carl Schwan --- apps/settings/lib/Controller/CheckSetupController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index d7295aaf264ef..72b7a2afe4fea 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -621,6 +621,10 @@ protected function hasRecommendedPHPModules(): array { } } + if (!defined('PASSWORD_ARGON2I')) { + $recommendedPHPModules[] = 'sodium'; + } + return $recommendedPHPModules; }