Skip to content

Commit 2979ecf

Browse files
[SecurityBundle] Improve error message when the bundle is not configured
1 parent d468b49 commit 2979ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Hasher/PasswordHasherFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private function getHasherConfigFromAlgorithm(array $config): array
200200
$config['algorithm'] = 'native';
201201
$config['native_algorithm'] = \PASSWORD_ARGON2ID;
202202
} else {
203-
throw new LogicException(sprintf('Algorithm "argon2id" is not available. Either use "%s", upgrade to PHP 7.3+ or use libsodium 1.0.15+ instead.', \defined('PASSWORD_ARGON2I') || $hasSodium ? 'argon2i", "auto' : 'auto'));
203+
throw new LogicException(sprintf('Algorithm "argon2id" is not available; use "%s" or libsodium 1.0.15+ instead.', \defined('PASSWORD_ARGON2I') || $hasSodium ? 'argon2i", "auto' : 'auto'));
204204
}
205205

206206
return $this->getHasherConfigFromAlgorithm($config);

0 commit comments

Comments
 (0)