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: Command/UserPasswordEncoderCommand.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -134,7 +134,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
134
134
if ($input->isInteractive() && !$emptySalt) {
135
135
$emptySalt = true;
136
136
137
-
$errorIo->note('The command will take care of generating a salt for you. Be aware that some encoders advise to let them generate their own salt. If you\'re using one of those encoders, please answer \'no\' to the question below. '.PHP_EOL.'Provide the \'empty-salt\' option in order to let the encoder handle the generation itself.');
137
+
$errorIo->note('The command will take care of generating a salt for you. Be aware that some encoders advise to let them generate their own salt. If you\'re using one of those encoders, please answer \'no\' to the question below. '.\PHP_EOL.'Provide the \'empty-salt\' option in order to let the encoder handle the generation itself.');
138
138
139
139
if ($errorIo->confirm('Confirm salt generation ?')) {
Copy file name to clipboardExpand all lines: DependencyInjection/SecurityExtension.php
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -680,7 +680,7 @@ private function createEncoder(array $config)
680
680
// bcrypt encoder
681
681
if ('bcrypt' === $config['algorithm']) {
682
682
$config['algorithm'] = 'native';
683
-
$config['native_algorithm'] = PASSWORD_BCRYPT;
683
+
$config['native_algorithm'] = \PASSWORD_BCRYPT;
684
684
685
685
return$this->createEncoder($config);
686
686
}
@@ -691,7 +691,7 @@ private function createEncoder(array $config)
691
691
$config['algorithm'] = 'sodium';
692
692
} elseif (\defined('PASSWORD_ARGON2I')) {
693
693
$config['algorithm'] = 'native';
694
-
$config['native_algorithm'] = PASSWORD_ARGON2I;
694
+
$config['native_algorithm'] = \PASSWORD_ARGON2I;
695
695
} else {
696
696
thrownewInvalidConfigurationException(sprintf('Algorithm "argon2i" is not available. Either use "%s" or upgrade to PHP 7.2+ instead.', \defined('SODIUM_CRYPTO_PWHASH_ALG_ARGON2ID13') ? 'argon2id", "auto' : 'auto'));
697
697
}
@@ -704,7 +704,7 @@ private function createEncoder(array $config)
704
704
$config['algorithm'] = 'sodium';
705
705
} elseif (\defined('PASSWORD_ARGON2ID')) {
706
706
$config['algorithm'] = 'native';
707
-
$config['native_algorithm'] = PASSWORD_ARGON2ID;
707
+
$config['native_algorithm'] = \PASSWORD_ARGON2ID;
708
708
} else {
709
709
thrownewInvalidConfigurationException(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'));
710
710
}
@@ -928,7 +928,7 @@ private function isValidIp(string $cidr): bool
0 commit comments