You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -186,7 +192,7 @@ private function getHasherConfigFromAlgorithm(array $config): array
186
192
$config['algorithm'] = 'native';
187
193
$config['native_algorithm'] = \PASSWORD_ARGON2I;
188
194
} else {
189
-
thrownewLogicException(sprintf('Algorithm "argon2i" is not available. Either use %s"auto" or upgrade to PHP 7.2+ instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? '"argon2id", ' : ''));
195
+
thrownewLogicException(sprintf('Algorithm "argon2i" is not available. Use "%s"instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? 'argon2id" or "auto' : 'auto'));
@@ -198,7 +204,7 @@ private function getHasherConfigFromAlgorithm(array $config): array
198
204
$config['algorithm'] = 'native';
199
205
$config['native_algorithm'] = \PASSWORD_ARGON2ID;
200
206
} else {
201
-
thrownewLogicException(sprintf('Algorithm "argon2id" is not available. Either use %s"auto", upgrade to PHP 7.3+ or use libsodium 1.0.15+ instead.', \defined('PASSWORD_ARGON2I') || $hasSodium ? '"argon2i", ' : ''));
207
+
thrownewLogicException(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'));
0 commit comments