Skip to content

Commit

Permalink
Make sure that sodium is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Jun 14, 2019
1 parent 8c9dcfd commit 315509b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Fixtures/app/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected function configureContainer(ContainerBuilder $c, LoaderInterface $load

$loader->load(__DIR__."/config/config_{$this->getEnvironment()}.yml");

$alg = class_exists(SodiumPasswordEncoder::class) ? 'auto' : 'bcrypt';
$alg = class_exists(SodiumPasswordEncoder::class) && SodiumPasswordEncoder::isSupported() ? 'auto' : 'bcrypt';
$securityConfig = [
'encoders' => [
User::class => $alg,
Expand Down

0 comments on commit 315509b

Please sign in to comment.