maj: suppression commentaire inutile
All checks were successful
Cadoles/hydra-sql/pipeline/pr-develop This commit looks good

This commit is contained in:
Rudy Masson 2023-01-05 11:31:29 +01:00
parent 422e97d329
commit b8fb01da5c
3 changed files with 2 additions and 7 deletions

2
Jenkinsfile vendored
View File

@ -4,4 +4,4 @@
// Utilisation du pipeline partagé pour les applications Symfony de Cadoles
// Le nom de l'image Docker passée en paramètre vous permet de préciser l'environnement de test
// de votre application Symfony
symfonyAppPipeline("ubuntu:20.04")
symfonyAppPipeline("ubuntu:22.04")

View File

@ -27,7 +27,7 @@ class PasswordEncoder implements LegacyPasswordHasherInterface
}
/**
* Pas utilisé
* Pas utilisé, mais on doit le garder pour le implements
*/
public function hash(string $plainPassword, string $salt = null): string
{

View File

@ -80,12 +80,7 @@ class SQLLoginUserAuthenticator extends AbstractAuthenticator
if ($remoteHashedPassword) {
try {
// Comparaison remote hash et hash du input password + salt
// dump($remoteHashedPassword, $plaintextPassword, $remoteSalt, password_verify($plaintextPassword, $remoteHashedPassword));
$this->passwordHasher->verify($remoteHashedPassword, $plaintextPassword, $remoteSalt);
// if ($this->passwordHasher->needsRehash($remoteHashedPassword)) {
// $hash = $this->passwordHasher->hash($plaintextPassword);
// $this->sqlLoginService->updatePassword($login, $hash, null);
// }
$attributes = $this->sqlLoginService->fetchDatas($login);
$user = new User($login, $remoteHashedPassword, $attributes, $rememberMe);