Skip to content

Commit

Permalink
Merge pull request #28259 from nextcloud/work/carl/sodium-check
Browse files Browse the repository at this point in the history
Check that php was compiled with argon2 support or that the php-sodium extensions is installed
  • Loading branch information
ChristophWurst authored Jul 30, 2021
2 parents 919e00a + 8e51a5f commit 43e41ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/settings/lib/Controller/CheckSetupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@ protected function hasRecommendedPHPModules(): array {
}
}

if (!defined('PASSWORD_ARGON2I')) {
$recommendedPHPModules[] = 'sodium';
}

return $recommendedPHPModules;
}

Expand Down

0 comments on commit 43e41ca

Please sign in to comment.