correction phpstan
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable
Details
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable
Details
This commit is contained in:
parent
341a1ecd87
commit
b5de7ee873
|
@ -23,7 +23,7 @@ DSN_REMOTE_DATABASE="pgsql:host='postgres';port=5432;dbname=lasql"
|
|||
APP_LOCALES="fr,en"
|
||||
HASH_ALGO_LEGACY="sha256, bcrypt"
|
||||
SECURITY_PATTERN="password,salt,pepper"
|
||||
REDIS_DSN="redis://redis:6379
|
||||
REDIS_DSN="redis://redis:6379"
|
||||
PEPPER=
|
||||
```
|
||||
### Algorithmes de hashage compatibles
|
||||
|
|
|
@ -54,7 +54,7 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
|
|||
return true;
|
||||
}
|
||||
|
||||
foreach(hash_algos() as $algo) {
|
||||
foreach (hash_algos() as $algo) {
|
||||
if (hash_equals($hashedPassword, hash($algo, $completedPassword))) {
|
||||
return true;
|
||||
}
|
||||
|
@ -76,9 +76,6 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
|
|||
/**
|
||||
* Retourne la string à hasher en fonction du pattern indiqué
|
||||
*
|
||||
* @param mixed $plainTextPassword
|
||||
* @param mixed $salt
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getPasswordToHash($plainTextPassword, $salt)
|
||||
|
|
Loading…
Reference in New Issue