correction phpstan
Some checks reported warnings
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable
Some checks reported warnings
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable
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
|
||||
@ -64,8 +64,8 @@ Se rendre sur [http://localhost:8000/](http://localhost:8000/) et cliquer `Login
|
||||
### Base de donnée
|
||||
2 bases de données différentes sont disponible pour les tests.
|
||||
Pour choisir la base de donnée à utiliser, modifier les d'environnement relatives à la base de donnée.
|
||||
- **URL Postgres**: `postgresql://lasql:lasql@mariadb:3306/lasql?serverVersion=15&chartset=utf8`
|
||||
- **URL Mariadb**: `mysql://lasql:lasql@postgres:5432/lasql`
|
||||
- **URL Postgres**: `postgresql://lasql:lasql@mariadb:3306/lasql?serverVersion=15&chartset=utf8`
|
||||
- **URL Mariadb**: `mysql://lasql:lasql@postgres:5432/lasql`
|
||||
|
||||
### Redis
|
||||
|
||||
|
@ -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
Block a user