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
Copy file name to clipboardExpand all lines: Hasher/PasswordHasherFactory.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ public function getPasswordHasher(string|PasswordAuthenticatedUserInterface|Pass
39
39
40
40
if ($userinstanceof PasswordHasherAwareInterface && null !== $hasherName = $user->getPasswordHasherName()) {
41
41
if (!\array_key_exists($hasherName, $this->passwordHashers)) {
42
-
thrownew \RuntimeException(sprintf('The password hasher "%s" was not configured.', $hasherName));
42
+
thrownew \RuntimeException(\sprintf('The password hasher "%s" was not configured.', $hasherName));
43
43
}
44
44
45
45
$hasherKey = $hasherName;
@@ -53,7 +53,7 @@ public function getPasswordHasher(string|PasswordAuthenticatedUserInterface|Pass
53
53
}
54
54
55
55
if (null === $hasherKey) {
56
-
thrownew \RuntimeException(sprintf('No password hasher has been configured for account "%s".', \is_object($user) ? get_debug_type($user) : $user));
56
+
thrownew \RuntimeException(\sprintf('No password hasher has been configured for account "%s".', \is_object($user) ? get_debug_type($user) : $user));
57
57
}
58
58
59
59
if (!$this->passwordHashers[$hasherKey] instanceof PasswordHasherInterface) {
@@ -188,7 +188,7 @@ private function getHasherConfigFromAlgorithm(array $config): array
188
188
$config['algorithm'] = 'native';
189
189
$config['native_algorithm'] = \PASSWORD_ARGON2I;
190
190
} else {
191
-
thrownewLogicException(sprintf('Algorithm "argon2i" is not available. Use "%s" instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? 'argon2id" or "auto' : 'auto'));
191
+
thrownewLogicException(\sprintf('Algorithm "argon2i" is not available. Use "%s" instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? 'argon2id" or "auto' : 'auto'));
@@ -200,7 +200,7 @@ private function getHasherConfigFromAlgorithm(array $config): array
200
200
$config['algorithm'] = 'native';
201
201
$config['native_algorithm'] = \PASSWORD_ARGON2ID;
202
202
} else {
203
-
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'));
203
+
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